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

move_base crashed when call clear_costmaps service

asked 2014-06-06 11:04:20 -0500

Yuichi Chu gravatar image

updated 2014-06-06 11:16:31 -0500

I download the latest updated navigation package from github.And I come across a problem .move_base crashed when I call clear_costmaps service at high rate,such as 2Hz.

below is the error infomation:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
[move_base-1] process has died [pid 16226, exit code -6, cmd /home/robocup/catkin_ws/devel/lib/move_base/move_base /move_base/clear_costmaps:=/clear_costmaps __name:=move_base __log:=/home/robocup/.ros/log/ad85e5de-ed8f-11e3-b90b-0015005e1628/move_base-1.log].
log file: /home/robocup/.ros/log/ad85e5de-ed8f-11e3-b90b-0015005e1628/move_base-1*.log

Has anyone met the problem before?Any advice will be appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-06-07 21:33:42 -0500

fergs gravatar image

Calling clear costmaps at a high rate is probably not tested -- as it is not a common use case. Typically this service is called only periodically when there is too much garbage in the costmaps. If you find yourself calling this frequently, you might want to look at why, and figure out what in your use case causes you to do this.

You might also file a ticket and/or open a pull request if you find a solution to the segfault.

edit flag offensive delete link more

Comments

Thank you very much for your answer,Michael.The problem I came across is described here. http://answers.ros.org/question/172915/why-the-costmaps-dont-clear-obstacles-in-time-when-using-move_base-package/

Yuichi Chu gravatar image Yuichi Chu  ( 2014-06-08 21:55:34 -0500 )edit

And I thought maybe calling clear costmaps periodically can solve the problem.Then the error occured like I have described above. Is there another way to solve the previous problem?

Yuichi Chu gravatar image Yuichi Chu  ( 2014-06-08 21:58:50 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2014-06-06 11:04:20 -0500

Seen: 1,394 times

Last updated: Jun 07 '14