Robot stops before reaching goal: how to make it closer

Hello,

I wanted to know how to make the robot stop closer to the wanted goal pose?

I changed in the controller the xy_goal_tolerance that seems to be the parameter corresponding to the problem but it only made the things worse. It still stops before but spin at the same spot for some time and the stops.

The 2 pictures below where givent the same goal with approximately the same start.


xy_goal_tolerance: 0.25

image


xy_goal_tolerance: 0.05

image

Hi @pabled91 ,

To have better goal positioning, you need to have better map resolution so that goal tolerance can be better. I believe your map resolution is 0.5? Use 0.1 or 0.05 as resolution - this will increase map pixel density, so you can navigate better.

Regards,
Girish

Hello,

I’m already in 0.05 but I found out that I missed one of the xy_goal_tolerance in the controller thats why it wouldn’t get closer.
Theonly limit is that if I put a too small tolerance the robot will spend a lot of time to the final step to try to reach the goal.

image

# Goal checker parameters
    general_goal_checker:
      stateful: True
      plugin: "nav2_controller::SimpleGoalChecker"
      xy_goal_tolerance: 0.05 #0.25
      yaw_goal_tolerance: 0.25
    # DWB parameters
    FollowPath:
      plugin: "dwb_core::DWBLocalPlanner"
      debug_trajectory_details: True
      min_vel_x: 0.0
      min_vel_y: 0.0
      max_vel_x: 0.26
      max_vel_y: 0.0
      max_vel_theta: 1.0
      min_speed_xy: 0.0
      max_speed_xy: 0.26
      min_speed_theta: 0.0
      acc_lim_x: 2.5
      acc_lim_y: 0.0
      acc_lim_theta: 3.2
      decel_lim_x: -2.5
      decel_lim_y: 0.0
      decel_lim_theta: -3.2
      vx_samples: 20
      vy_samples: 5
      vtheta_samples: 20
      sim_time: 1.7
      linear_granularity: 0.05
      angular_granularity: 0.025
      transform_tolerance: 0.2
      xy_goal_tolerance: 0.05 #0.25
      trans_stopped_velocity: 0.25
      short_circuit_trajectory_evaluation: True
      stateful: True
      critics: ["RotateToGoal", "Oscillation", "BaseObstacle", "GoalAlign", "PathAlign", "PathDist", "GoalDist"]
      BaseObstacle.scale: 0.02
      PathAlign.scale: 32.0
      PathAlign.forward_point_distance: 0.1
      GoalAlign.scale: 24.0
      GoalAlign.forward_point_distance: 0.1
      PathDist.scale: 32.0
      GoalDist.scale: 24.0
      RotateToGoal.scale: 32.0
      RotateToGoal.slowing_factor: 5.0
      RotateToGoal.lookahead_time: -1.0

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.