Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
robocup:object_detection [2016/02/03 14:08] 127.0.0.1 [Instructions] |
robocup:object_detection [2017/03/31 12:31] mai tag |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag>Kinect tutorial}} | ||
+ | |||
=====Requirement===== | =====Requirement===== | ||
Be sure to have the 1414 model for the kinect, else you won't be able to control its angle with ROS. | Be sure to have the 1414 model for the kinect, else you won't be able to control its angle with ROS. | ||
Line 6: | Line 8: | ||
=====Instructions===== | =====Instructions===== | ||
- | * Unplug the kinect on the computer and on the socket. | + | * Plug the kinect on the computer and on the socket. |
* Open a terminal and enter the command "roslaunch openni_launch openni.launch" (wait until some yellow messages appear on the terminal) | * Open a terminal and enter the command "roslaunch openni_launch openni.launch" (wait until some yellow messages appear on the terminal) | ||
* Open a new terminal and enter the command "rosrun object_detection object_detection" | * Open a new terminal and enter the command "rosrun object_detection object_detection" | ||
* Open a new terminal and enter the command "rosrun kinect_aux kinect_aux_node" | * Open a new terminal and enter the command "rosrun kinect_aux kinect_aux_node" | ||
- | * Open a new terminal and enter the command "rotopic pub /tilt_angle std_msgs/Float64 -- -30" | + | * Open a new terminal and enter the command "rostopic pub /tilt_angle std_msgs/Float64 -- -30" |
* Open a new terminal and enter the command "rosrun image_view image_view image:=/object_detection/red_objects" | * Open a new terminal and enter the command "rosrun image_view image_view image:=/object_detection/red_objects" | ||