Machine vision in the computer age has become more and more popular, camera prices are cheaper, some integrated depth sensor hybrid sensor has gradually become popular in the field of research, such as Microsoft's launch of the Kinect, and its supporting software is very powerful, for the development of a great convenience. Ros integrates the Kinect driver package Openni and uses OPENCV libraries for a wide variety of image processing.
Note: The contents and code of this chapter refer to the tenth chapter of the ROS by Example book.
First, the image display
Let's start with the basics and figure out how to display the Kinect's image data.
1, install the driver package
The installation steps are simple:
$sudo Apt-get Install Ros-fuerte-openni-kinect
2, testing
First run the Kinect node:
$roslaunch rbx1_vision Openni_node_fuerte.launch
Then we call the Ros Image_view package to directly display the camera's database. The introduction of the Image_view package can refer to:
Http://www.ros.org/wiki/image_view.
$rosrun Image_view Image_view Image:=/camera/rgb/image_color
We can see that a standalone image display box pops up: