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>
Please be more specific as to "doesn't work". Also, what user_tracking package are you using?
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.
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.