ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Using Kinect for both navigation and user tracking

asked 2013-05-16 05:44:58 -0500

da-na gravatar image

updated 2016-10-24 08:37:11 -0500

ngrennan gravatar image

Hi there!

I'm trying to use one Kinect for two tasks: navigation and user tracking. At first firing navigation simultaneously with user_tracking doesn't work, and I couldn't find any information if anyone tried that?

Navigation and tracking work if I run them separately.

Any help would be appreciated!


edit retag flag offensive close merge delete



Please be more specific as to "doesn't work". Also, what user_tracking package are you using?

David Lu gravatar image David Lu  ( 2013-05-16 06:57:00 -0500 )edit

I am working on the same type of project. What packages are you using?

I am using openni_camerafor the Kinect, openni_tracker for skeleton tracking, and p2os-vanderbilt for Pioneer3DX.

sealguy77 gravatar image sealguy77  ( 2014-12-04 03:35:57 -0500 )edit

I have not yet started on the navigation piece yet, but I figure I would start with this package. I figure the 'goal location' could subscribe to the tf topic of the skeleton with an offset. I'll keep you posted with updates and you will see my questions soon.

sealguy77 gravatar image sealguy77  ( 2014-12-04 03:40:01 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2014-11-07 09:56:31 -0500

paulbovbel gravatar image

updated 2014-11-07 10:00:47 -0500

ROS nodes are a publisher/subscriber system - the publishing nodes (should) operate normally no matter how many subscribers are consuming the data downstream. Are you pushing the limits of your hardware's processing capability?

Check top output to see the CPU load. An easy way to reduce processing load with Kinect or other RGBD cameras is to reduce the resolution using dynamic_reconfigure.

How are you using the Kinect output in navigation? Instead of using the pointcloud as a datasource, try feeding it through pointcloud_to_laserscan or use the depth image via depthimage_to_laserscan, both options will reduce the CPU load significantly.

Please add launch files and debug output to your question.

edit flag offensive delete link more

answered 2015-03-23 15:34:40 -0500

I have gotten my robot to be able to navigate and user track. I am utilizing ROS Hydro on two Ubuntu 12.04 computers. One is the base computer. The other is on my Pioneer3-DX with the Microsoft Kinect. In order to do navigation and user-tracking, I run a launch file to start the following nodes: p2os_driver, p2os_enableMotors, p2os_urdf, openni_launch, openni_tracker, and depthimage_to_laserscan.

I then worked through the Navigation Tutorials and gmapping, to learn to set up the appropriate navigation parameter files and how to use gmapping. I then used the following move_base.launch file to start navigation and this RViz Navigation Tutorial to control the robot.

The robot is able to navigate while tracking users.

It is possible to do both skeleton tracking and navigation using one Kinect. I am not sure what problems you are having. As mentioned before, please post your launch files and any errors you have. I will try to help you if I can.



  <!-- Start gmapping -->
    <node  pkg="gmapping" name="slam_gmapping" type="slam_gmapping" output="screen" />

  <!-- Start navigation -->
    <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
        <rosparam command="load" file="$(find follow_me_2dnav)/launch/costmap_common_params_p3dx.yaml" ns="global_costmap"/>
        <rosparam command="load" file="$(find follow_me_2dnav)/launch/costmap_common_params_p3dx.yaml" ns="local_costmap"/>
        <rosparam command="load" file="$(find follow_me_2dnav)/launch/local_costmap_params.yaml"/>
        <rosparam command="load" file="$(find follow_me_2dnav)/launch/global_costmap_params.yaml"/>
        <rosparam command="load" file="$(find follow_me_2dnav)/launch/base_local_planner_params.yaml"/>
edit flag offensive delete link more

answered 2014-11-07 09:46:49 -0500

idavico gravatar image

does it work? i have the same problem

edit flag offensive delete link more


please don't post me-too answers. constructive additions can be added as comments, otherwise please upvote to display your interest and keep the board less cluttered.

paulbovbel gravatar image paulbovbel  ( 2014-11-07 09:58:50 -0500 )edit

Question Tools

1 follower


Asked: 2013-05-16 05:44:58 -0500

Seen: 629 times

Last updated: Mar 23 '15