Why does my robot navigate too close to walls and/or cuts corners?

Question: Why does my robot navigate too close to walls and/or cuts corners?

Short Answer: Define/Increase the inflation radius in your costmap configuration.
Long Answer: At first glance, parameter min_obstacle_dist could be increased, but this could lead to an undesired navigation behavior in small hallways or doors (see Gaps in the trajectory). The local planner “follows” a moving virtual goal on the global plan. Therefore locations of intermediate global plan position of the global plan significantly influence the spatial behavior of the local plan. By defining an inflation radius the global planner prefers plans with minimum cost and hence plans with a higher separation from walls. Note, the teb_local_planner itself does not take the inflation radius into account. The resulting motion is time-optimal w.r.t. the virtual goal. If you wish to stick much more to following the global path, refer to Global path following. If your robot hits walls, you should really increase min_obstacle_dist or setup an appropriate footprint (refer to this tutorial).


Why does my robot navigate too close to walls and/or cuts corners?
https://qiangsun89.github.io/2023/03/08/Why-does-my-robot-navigate-too-close-to-walls-and-or-cuts-corners/
作者
Qiang Sun
发布于
2023年3月8日
许可协议