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

costmap_2d TrajectoryPlannerROS cost_cloud not being published

asked 2011-12-05 13:42:57 -0600

Pi Robot gravatar image

updated 2011-12-05 13:48:52 -0600

Hello,

I have a laser scanner and a Kinect on my TurtleBot. I would like to use the point cloud from the Kinect to assist with obstacle avoidance while I use the laser for amcl navigation. I have included both the laser and Kinect as observation sources in my costmap_common_params.yaml file (see below). I can view the raw point cloud from the Kinect (/camera/depth/points) in RViz; however, the cost cloud under /move_base/TrajectoryPlannerROS/cost_cloud returns a warning "No messages received". I've read through the costmap_2d Wiki page but I can't see what I am missing.

I am running the latest Debian version of ROS Electric under Ubuntu 10.04. Here is my parameter file:

obstacle_range: 2.5
raytrace_range: 3.0
robot_radius: 0.17
inflation_radius: 0.6
max_obstacle_height: 0.6
min_obstacle_height: 0.08
observation_sources: scan point_cloud
scan: {data_type: LaserScan, topic: /scan, marking: true, clearing: true}
point_cloud: {data_type: PointCloud2, topic: /camera/depth/points, marking: true, clearing: true}

Thanks!
patrick

edit retag flag offensive close merge delete

Comments

Hi could you make the navigation work with gmapping after all? I would really apprciate some help thanks

ctguell gravatar image ctguell  ( 2013-07-29 06:48:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-12-05 22:40:54 -0600

Eric Perko gravatar image

So... Apparently neither Eitan nor myself actually put any documentation for this on the wiki... whoops.

I've added some documentation to the base_local_planner docs that should describe how to configure that topic. See ros-pkg 4620 for some more usage details.

Let me know if the wiki documentation isn't sufficient to answer this question and how we can improve it.

edit flag offensive delete link more

Comments

Thanks Eric. I added the line 'publish_cost_grid_pc: true' in my base_local_planner_params.yaml file and verified it is getting set via rosparam. However, I still get "No messages received" in RViz for the cloud_cost topic. Also, 'rostopic hz /move_base/TrajectoryPlannerROS/cost_cloud' subscribes to the topic but then never returns any values. I'm less worried about seeing the cloud than I am verifying that the Kinect's point cloud is actually being factored into the cost. I believe it is since I can see the projection of the cloud onto the ground plane in RViz as occupied cells.
Pi Robot gravatar image Pi Robot  ( 2011-12-06 00:12:12 -0600 )edit
Whoops, thanks Eric, I dropped the ball on that one. As far as the cloud_cost topic goes, has it been advertised by move_base at least? Also, I'd highly recommend downsampling the cloud from the kinect with something like a voxel grid filter before passing it to the nav stack to improve performance.
eitan gravatar image eitan  ( 2011-12-06 04:23:55 -0600 )edit
Thanks Eitan. I have been running the Kinect at QQVGA for both image and depth (mode 8). Do you think this is sufficient or do you recommend downsampling in addition to the low resolution?
Pi Robot gravatar image Pi Robot  ( 2011-12-06 06:53:37 -0600 )edit

Hi could you make the navigation work with gmapping after all? I would really apprciate some help thanks

ctguell gravatar image ctguell  ( 2013-07-29 06:46:37 -0600 )edit

Question Tools

Stats

Asked: 2011-12-05 13:42:57 -0600

Seen: 830 times

Last updated: Dec 05 '11