ntnu-arl / gbplanner_ros

Graph-based Exploration Planner for Subterranean Environments
BSD 3-Clause "New" or "Revised" License
670 stars 153 forks source link

Paths generated are way too close to edges #56

Closed Josgonmar closed 1 week ago

Josgonmar commented 2 months ago

Hi, thanks a lot for your awesome work!

I've been using your package to explore some sort of warehouse with corridors and stands, and I noticed how in some cases the paths generated are too close to edges when changing from one corridor to another. It seems that the path improvement fails to provide a safer path even though there is enough free space to do so:

edge

Is there a work around to avoid these type of things? I was thinking about some sort of inflation for the map, but the only thing I managed to do for better results was just to increase the size of the voxels, but it makes some corridors too narrow to be explored.

Thanks in advance!

tiralonghipol commented 1 week ago

hei @Josgonmar ! you can inflate the robot size and the safe collision extension in the config file here

Josgonmar commented 1 week ago

Hey @tiralonghipol, thanks for the reply!

I did play a little bit with the size extension and similar params, but i was still getting the same result, usually when the path had to turn around an edge. What i did in the end in order to prevent this from happening so often was to divide the path in 2 segments where the turn was made, and improving the first one. Then, after adding the remaining segment to the improved one, i call the same function again with the whole path. This way i usually get better results, as the increased computation is not a problem for me :smile:

I'm closing this issue now!