xiaoqiang tutorial (9) use rostopic to control kinect tilt angle

Xiaoqiang Homepage

use rostopic control kinect tilt angle

Prepared work:

Please check the kinect version, indicated on the kinect base label. For the users of the model1473, due to the defect of the drive (which does not affect other functions of the kinect, only the motor), the following operations need to be performed first, and the model1414 user can directly skip.

ssh login xiaoqiang host

ssh xiaoqiang@192.168.0.xxx -X
freenect-micview

If the following figure appears, close the above command and continue the tutorial

0_1536152713115_5ac887e3-9847-4956-a393-5afc6057b373-image.png

Steps:

1. Open a new window in the local virtual machine, start the freenect_stack driver

ssh login Xiaoqiang host

ssh xiaoqiang@192.168.0.xxx -X
roslaunch freenect_launch freenect-xyz.launch

The normal startup will appear below, if there is a red error (driver defect), please update the freenect_stack program through git pull.

0_1536152779362_62cfdad0-cc17-4f6d-8242-613716d871eb-image.png

2.Open a new window in the local virtual machine, release the motor angle control command

ssh login Xiaoqiang host

ssh xiaoqiang@192.168.0.xxx -X
rostopic pub /set_tilt_degree std_msgs/Int16 '{data: -20}' -1

If all goes well, you can now see that the elevation of the kinect keeps getting smaller. The {data: -20} number in the above command represents the angle and can be set to an integer between 30 and -30. Insert the kinect cable into the host's blue Color usb3.0 port so that kinect can work properly.

Xiaoqiang Homepage Back To Index

results matching ""

    No results matching ""