Robotics StackExchange | Archived questions

Autoware Astar avoid bad_alloc error

Required information:

Description of the bug

Using LGSVL sim, astar avoid crashes in avoidance_mode when stopping.

Steps to reproduce the bug

Error message :

[ INFO] [1582019551.725842839]: RELAYING -> STOPPING, Decelerate for stopping                                                                                                                                                                 

terminate called after throwing an instance of 'std::bad_alloc'                                                                                                                                                                               
  what():  std::bad_alloc                                                                                                                                                                                                                     

[astar_avoid-1] process has died [pid 7504, exit code -6, cmd /home/maxandre/autoware.ai/install/waypoint_planner/lib/waypoint_planner/astar_avoid costmap:=semantics/costmap_generator/occupancy_grid __name:=astar_avoid __log:=/home/maxand
re/.ros/log/e7f5412c-5230-11ea-9e82-9cb6d0c541d5/astar_avoid-1.log].                                                                                                                                                                          
log file: /home/maxandre/.ros/log/e7f5412c-5230-11ea-9e82-9cb6d0c541d5/astar_avoid-1*.log                                                                                                                                                     

Expected behavior

The car should detect the obstacle, slow down, replan a new way around it, and follow it.

Actual behavior

Astar_avoid crashes after an object is detected

You can find a rosbag of what is happening here

Do you have any idea how to correct this ?

Asked by Mackou on 2020-02-19 10:50:36 UTC

Comments

Hi I have seen the A* at least avoided the obstacle. In my case the costmap generator did not recognized the obstacle: Could you please help me and say which tutorial you followed to trigger costmap generator correctly? The issues are here:

https://answers.ros.org/question/367180/costmap_generator-node-do-not-work-well-2361/

https://answers.ros.org/question/367056/costmap_generator-workbut-it-topic-semanticscostmap_generatoroccupancy_grid-do-not-have-data/#377423

Asked by Vini71 on 2021-05-03 08:44:34 UTC

Answers