ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Neither of those global planners makes it a priority to create a path that is a straight line to the goal. For NavFn, what I have seen is that the algorithm maximizes the path's distance from obstacles (e.g. walls) if most of the cells in the global costmap have a cost of zero.

To encourage the planner to create a more direct path, assign every cell in your global costmap a cost > 0. This makes a longer path have a higher path-cost.