-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding second model -> training -> error: freeglut illegal glutInit() reinitialization attempt #20
Comments
I am also having the same issue. It would great if anyone can help. Thanks |
|
Thanks, @RudiRobot . I moved my files to /tmp folder, and then train, detect. And then I created my second model with the official coke, then I got the same error: freeglut illegal glutInit() reinitialization attempt The problem is, I can't train the second model. Note: the error comes from using cmd: Output: After deleting the second object in db, and train again, no error. Everything works fine. I think this is a bug. ORK people solved one bug by changing ork_renderer to use glut to train models and detect objects. This then gets this second bug. Thanks! |
A possible solution is to change object_id parameter in ork_linemod/apps/training
Then training worked fine. Then when trying to detect the object, you would still get the error: And this time you CANNOT detect each object separately, like training. |
Training works for several objects when using STL meshes. Did you try it? |
Yes. But it did not work. "freeglut illegal glutInit() reinitialization attempt" still exists. |
I suddenly got this: I didn't change anything. I just ran the training node. I don't know whether someone met this before. |
Hi @nlyubova , |
@YantianZha, I got the AF_INET error as well. For me I think the problem was adding the arg @YantianZha : just run |
right @JimmyDaSilva , it is because of nodeHandle when -DLINEMOD_VIZ_PCD=ON, we should fix it |
@nlyubova I still don't understand where it comes from .Since |
@JimmyDaSilva , right, it is in linemod_detect.cpp but they are compiled together |
fixed it in nlyubova@06f48f9 |
@nlyubova That solves it ! Tested and approved. Can you push this ? |
Yeah, also tested and already done a pull request
|
@vrabaud Got fixed with wg-perception/ork_renderer#12 |
rosrun object_recognition_core training -c
rospack find object_recognition_linemod
/conf/training.orkTraining 2 objects.
computing object_id: 26fd4a3e0309ca93c5d8ba054b001268
Info, T0: Load /tmp/filejUzsrU.obj
Info, T0: Found a matching importer for this file format
Info, T0: Import root directory is '/tmp/'
Error, T0: OBJ: Unable to locate material file paper_cup.mtl
Error, T0: OBJ: failed to locate material None.001, skipping
Info, T0: Entering post processing pipeline
Info, T0: Points: 0, Lines: 0, Triangles: 1, Polygons: 0 (Meshes, X = removed)
Error, T0: Failed to compute tangents; need UV data in channel0
Info, T0: JoinVerticesProcess finished | Verts in: 71400 out: 48417 | ~32.2%
Info, T0: Cache relevant are 1 meshes (23800 faces). Average output ACMR is 2.034622
Info, T0: Leaving post processing pipeline
Deleting the previous model 26fd4a3e0309ca93c5d8ba054b0027bb of object 26fd4a3e0309ca93c5d8ba054b001268
computing object_id: bd469776b362b00f0f60e3e3bd000425
freeglut illegal glutInit() reinitialization attempt
The first possible reason is: my model is wrong. For your convenience here is the link to my model: https://drive.google.com/folderview?id=0BwZMlUaV88n6OWNqbUtGUE84Y1U&usp=sharing
That said, I created the model with blender following the tutorial (http://wg-perception.github.io/ork_tutorials/tutorial01/tutorial.html#creating-an-object-in-the-db). There're two points: origin, and size. I think my model in right by following the coke.obj (NOT coke.stl) model as an sample.
Another possible reason is: #3
That link refers to wg-perception/ork_renderer@bf49f05
But I can't find the fie "src/renderer_glut.cpp". The closest file I can find is: "ork_renderer/src/renderer3d_impl_glut.cpp". But I suspect I don't need to change that file any more?
Thanks very much!
The text was updated successfully, but these errors were encountered: