-
Notifications
You must be signed in to change notification settings - Fork 30
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
-DUSE_GLUT=1 if glut is found #9
base: master
Are you sure you want to change the base?
Conversation
OSMes is better because it does not require a screen: it will not pop up a windows to create the rendering. It should be the solution of choice. Your patch seems to be the correct fast solution. Now, I'd like to understand the install issue you have. Why does it happen ? You have a special PPA that has a secial Mesa ? It's not an Ubuntu problem because the buildfarms are fine with it. |
This is the error given when trying to install the debian package:
It's almost a fresh install except that I installed libfreenect2 to run the KinectV2 following these intructions: https://github.com/OpenKinect/libfreenect2#debianubuntu-1404 So my problem may come from: Or maybe when installing the |
Also the display "Assimp renderer" doesn't show anything in training or detection. |
@JimmyDaSilva If you want to discuss about an issue related to the detection, please open the issue at the appropriate package. |
@hris2003 Yes sure. Sorry. Going to update previous post |
Hi @vrabaud, I am now running linemod with a clean install and OSmesa. As expected the renderer's window is not empty now. During training the renderer window shows the mesh with different sampling view, but without colors. During detection I get the following window, with my coke can in blue ! So far, the detection seems to work pretty well. I can detect my mug or my hand sometimes but I guess I will get rid of it with some post-processing. I just need to know if the renderer it making is job properly to make use of the object texture. The blue can and the training window just doesn't seem right to me. Thank you for your help Jimmy |
Your cola can be blue because of openni2_launch, try the previous version |
Thank you for your reply @nlyubova. It does change the colors displayed but the results are the same. Now the coke can is red, but I still get the same score for both cans |
did you learn OBJ meshes? |
it says "texture loaded"..... sorry, never tried to use color :) But will try ! |
Okay thanks. Please keep me posted. |
@vrabaud To come back to the mesa/glut problem: Yesterday I installed a graphics card on the desktop I have been working on linemod this past week. All I did was to install What happened for me: Then I started to look at what happens and in which loop the code is stuck. And it was on reading the "distances" field in the learnt documents: Then I compiled to use GLut. Re-trained my objects. And the code runs. short:
|
So, should I still merge that PR ? I actually get some black window for training too ... Mesa works but not the renderer so there is indeed a bug there ... I am trying to narrow it down ... |
GLut seems to work all the time, but is actually slower than mesa I think so I don't know. Depends on if you think you can fix the problem. |
Hey, can you actually compile the OS demo in there and get it to work for you ? ftp://ftp.freedesktop.org/pub/mesa/demos/8.3.0/ |
@vrabaud Yes, it works. I don't know which specific demo you were talking about but mesa runs. Its a different computer but same setup (nvidia-352). |
Hi @hris2003 and @vrabaud !
As discussed earlier this year on the Google User group here, there is some compilation issue when trying to compile without the proper mesa libraries. Since I am working with the KinectV2, I have to use glut instead.
The problem here is just that USE_GLUT never gets defined in renderer3d.cpp, only in cmake. That's why I use
add_definitions(-DUSE_GLUT=1)
.I also propose
if (${GLUT_FOUND})
so that it's not required to change the option by hand.It would be nice to also remove the dependency to libosmesa6-dev because it can actually build with glut instead. That way kinectV2 users could install all the debians of ORK.
Thanks for the great work by the way
Cheers,
Jimmy Da Silva