Ask Your Question

Revision history [back]

The only fix at the moment seems to be to overlay the C-Turtle version of the vision_opencv stack and then set your ROS_PACKAGE_PATH and PYTHONPATH environment variables to pick up this version before Diamondback's version. This has been tested under Ubuntu 10.04 using Debian packages for Diamondback and the C-Turtle vision_opencv stack.

To apply this fix on your machine, follow these steps:

$ sudo apt-get install ros-cturtle-vision-opencv
$ cd
$ echo -e "\nexport ROS_PACKAGE_PATH=/opt/ros/cturtle/stacks/vision_opencv:$ROS_PACKAGE_PATH" >> .bashrc
$ echo -e "\nexport PYTHONPATH=/opt/ros/cturtle/stacks/vision_opencv/opencv2/lib:$PYTHONPATH" >> .bashrc
$ source .bashrc

(The last command is only necessary in any currently open terminal windows. The path changes will be automatically picked up in any new terminal windows you launch in the future.)

In the meantime, I have updated the pi_head_tracking_tutorial package to include support for the Kinect (previously only webcams were supported). To use a Kinect, edit the head_track.launch file and set the "kinect" arg to True. I have noticed that color tracking with the Kinect does not seem to work as well as with the webcams I have tried. I have an idea how to improve this and will post an update when I have it implemented.

--patrick