Tuning Navigation - robot keeps rotating when close to its goal
Hello,
My robot Mojo and I are happily trying to use the navigation stack.
After a bit of parameter tuning, I managed to get it follow its planned path quite well.
My only problem is that things get pretty rotational when Mojo closes on its goal. As you can see in this video, it is like if it forgets it can also not move forward while rotating. Mojo is fitted with a differential drive.
I tried to play with some parameters of the base planner, but I can't really figure out how to stop this annoying rotation. This is not my first experience with the navigation stack and I know it is possible to reach the goal far better than that.
Has anyone ever experienced this behaviour? How could I make it stop?
Here are my base planner parameters:
TrajectoryPlannerROS:
max_vel_x: 0.45
min_vel_x: 0.1
max_rotational_vel: 0.5
min_in_place_rotational_vel: 0.1
acc_lim_th: 0.25
acc_lim_x: 0.5
vx_samples: 5 #default is 3, I feel like putting 5. I'm the architect after all! :)
vtheta_samples: 20 #default is 20
holonomic_robot: false
path_distance_bias: 5.0 #default .6
goal_distance_bias: 0.8 #default .8
occdist_scale: 0.01 #default 0.01
heading_lookahead: 0.325 #default 0.325m
heading_scoring: false #default false
heading_scoring_timestep: 5.0 #default 0.8 sec
sim_time: 5.0 #default is 1.0 - simulate 5 seconds ahead
sim_granularity: 0.025 #default is 0.025 - simulation with steps of 2.5 cm
dwa: false #I prefer trajectory rollout as I can see it in rviz
xy_goal_tolerance: 0.2 #default is 10cm but I think AMCL makes it too giggly for this to be safe
yaw_goal_tolerance: 0.09 #default is 0.05 rad (~3 degrees), I changed it to 5
Thanks in advance for your help
Raph