ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

move_base crashed when call clear_costmaps service

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

Yuichi Chu gravatar image

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

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

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

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


Thank you very much for your answer,Michael.The problem I came across is described here.

Yuichi Chu gravatar image Yuichi Chu  ( 2014-06-08 21:55:34 -0600 )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 -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



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

Seen: 1,305 times

Last updated: Jun 07 '14