problems running hand_detector on PR2
Has anyone gotten hand_detector.launch (the MIT hand detection Kinect library) to run on a PR2 robot?
I've worked through some minor problems with our PR2 running Diamonback:
The solution from this post: http://answers.ros.org/question/688/s... helps solve one problem.
The file main.cpp inside of skeletal_tracker (which must be run with this package) has a bunch of calls to OpenGL/GLUT code. You can't run it locally on the PR2 (no monitor), and I've found you can't pipe it over ssh -X for some technical reasons with GLUT (at least that's what I've been able to gather through google). I fixed this situation by modifying main.cpp as follows:
//glInit(&argc, argv);
//glutMainLoop();
ros::spin();
As you can see I just replaced the OpenGL callbacks with a ros::spin. I'm not really sure what the graphical window in this package is for. I'm guessing it's important.
SO ... Now I can run the code on our PR2 robot without it crashing/complaining, but no messages ever get published to the topics /hands/ /hand0_fullcloud /hand1_fullcloud. I'm not really sure where to go from here. Suggestions?