Ask Your Question
1

Using Kinect for both navigation and user tracking

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

da-na gravatar image

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

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!

da-na

edit retag flag offensive close merge delete

Comments

4

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

David Lu gravatar imageDavid Lu ( 2013-05-16 06:57:00 -0600 )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 imagesealguy77 ( 2014-12-04 03:35:57 -0600 )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 imagesealguy77 ( 2014-12-04 03:40:01 -0600 )edit

3 Answers

Sort by ┬╗ oldest newest most voted
1

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

paulbovbel gravatar image

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

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
1

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

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.


move_base.launch:

<launch>

  <!-- 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"/>
    </node>
</launch>
edit flag offensive delete link more
0

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

idavico gravatar image

does it work? i have the same problem

edit flag offensive delete link more

Comments

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 imagepaulbovbel ( 2014-11-07 09:58:50 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 423 times

Last updated: Mar 23 '15