Robot rotates near goal when goal is set in RViz
Hello. I am moving my robot NVIDIA Jetbot using move_base with gmapping, for navigation and vision using only LiDAR information (without odometry & encoders). The goal is set in RViz, and overall it works great with one exception - when robot reaches goal it starts to rotate a lot in one place.
I have tried to, logically, tune yaw_goal_tolerance
in dwa_local_planner_params.yaml
, but it seems that no values had solve this problem - small (i.e. 0.07), medium (i.e. 1.57) or even big (i.e. 6.28, and I assume yaw_goal_tolerance
is measured in radians, and 6.28 equals to full 360 degrees, which means it should totally ignore any direction given, but it keeps rotating at the goal). I tried to also change xy_goal_tolerance
, but that did not work as well. I've tried using Navigation Tuning Guide, but nothing related to my task helped me.
And I have also noticed that giving goal as a point in RViz (without direction) still makes robot rotate near goal. The issue might be in local trajectory, because in process of rotating it seems like local trajectory doesn't match global trajectory near goal, but I am not sure.
Can someone give me advice how to solve this? Is there anything that can help minimize rotating near goal?
Ubuntu 18.04, ROS Melodic
I've changed my
path_distance_bias
to 100 in dwa_local_planner, and it somehow helped a bit (but not fully). Not sure if this might be a solution, so I would still appreciate any advice on this problem!