navigation icon indicating copy to clipboard operation
navigation copied to clipboard

Added navfn path length threshold

Open DatSpace opened this issue 3 years ago • 1 comments

This PR simply adds a new parameter for Navfn ROS, that allows you to limit the max allowed distance of the generated path.

DatSpace avatar Jun 07 '21 09:06 DatSpace

The goal is to be able to avoid going all around in a path. For example if you have a room with a doughnut like shape and the path is blocked somewhere, I dont want the robot to pathfind all the way around to the other side of the blocked path.

By setting a limit to the path (optionally) we can avoid that very simply.

With the way it is implemented, navfn will throw a warning and then it will try to re plan until it times out. After that it will go into recovery as expected, which will clear any possible obstacles in the path etc, making it a very good way to do this, I believe.

DatSpace avatar Jun 11 '21 12:06 DatSpace