noeperez / indires_navigation

ROS packages for ground robot navigation and exploration
BSD 3-Clause "New" or "Revised" License
122 stars 30 forks source link

RRT planner bad alloc() after RRT make plan #13

Open robertsenps opened 3 years ago

robertsenps commented 3 years ago

Hi noeperez.

First thing first I'm very happy that I can found this package after searching for a long time for a 3D navigation. I managed to try to run the package on my laptop to run with HDL Localization. My laptop has Ubuntu 20.04 and ROS noetic. After some time, I can finally run the pcl_filter without errors. Now, I want to run the adapted_move_base.

But I got an error after I give the robot a goal. The error says:

RRT. Approximate solution found. dist to goal: 0.209
Path cost: 0.4640
terminate called after throwing an instance of 'std::bad_alloc'

It happens after it calculates the cost of the path. I also tried to solve it by myself by searching to RRT planner that I'm using. I'm using Simple RRT *. I think the problem is on memory allocation or something I don't know. Can you help me?

Thank you.

image