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

Setting up navigation stack on p3dx

asked 2011-03-21 18:38:00 -0500

Aravindhan K Krishnan gravatar image

I am trying to set up the navigation stack on p3dx. I follow the instructions in . When the move_base node comes up, I get the following warning repeatedly and after sometime move_base node crashes

The base_scan observation buffer has not been updated for 3.05 seconds, and it should be updated every 0.20 seconds

I can see the laser readings in rviz.

The crash is due to bad_alloc() exception. The memory usage increases gradually when the warnings appear and the free memory reduces to around 100 MB at which point the crash happens.

Observations from "rosrun tf view_frames"

The tf shows map->odom->base_link->laser.
The tf publishing rates are 9.57, 10.20 and 10.19 Hz respectively.
The "Most recent transform" says 0.078 and 0.073 and -0.040 secs old respectively.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-03-22 08:29:24 -0500

eitan gravatar image

The warning that you're receiving from move_base means that, for one reason or another, the costmap is not receiving sensor data on the base_scan topic at the rate it expects. There are a few things to try:

1) Make sure that the move_base node is successfully subscribed to the topic it expects sensor_data on, in this case, that's the "base_scan" topic. Its possible that you have the wrong topic name specified in the costmap configuration.

2) Make sure that the sensor is publishing at a reasonable rate using the "rostopic hz" tool. So, for you, that'd be "rostopic hz base_scan." If the laser is not coming in at a reasonable rate, you'll have to solve that issue before navigation will work well.

3) Check the load on the computer you're running things on. Its possible that there's just too much going on and the system is completely bogged down. If this is the case, you may want to tune the navigation stack to use less CPU. You can do this by changing the update frequency of the costmap:, or the controller_frequency parameter of move_base:

Hope this helps,


edit flag offensive delete link more

Question Tools


Asked: 2011-03-21 18:38:00 -0500

Seen: 1,496 times

Last updated: Mar 22 '11