Navigation

    蓝鲸ROS机器人论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

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

    产品服务
    1
    1
    782
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • weijiz
      weijiz last edited by weijiz

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright © 2015-2021 BlueWhale community