Tune the pallet dock anchor and the Stanley docking limits on the robot

maker_sources: the pallet goal is measured from the dock centre, so dock_anchor
moves to center and footprint_dock declares the measured pallet extents.

stanley_local_planner_params: raise max_steer_rate to the rate the servo was
measured at, lower the docking speed ceiling, and loosen the goal tolerances to
what the robot actually settles within.
This commit is contained in:
2026-08-15 14:23:17 +07:00
parent 2db951de09
commit 2f160b7ace
2 changed files with 11 additions and 10 deletions

View File

@@ -79,4 +79,5 @@ docking_marker_profiles:
pallet:
global_planner: DockPlanner
local_planner: StanleyDockingLocalPlanner
dock_anchor: face
dock_anchor: center
footprint_dock: [[0.5,-0.5],[0.5,0.5],[-0.5,0.5],[-0.5,-0.5]]

View File

@@ -47,7 +47,7 @@ StanleyLocalPlanner:
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái".
# Chỉnh: hiếm khi cần; tăng nếu profile tốc độ giảm
# oan vì các dao động lái nhỏ.
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
max_steer_rate: 1.50 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
# servo thật đạt đỉnh 1.08-1.35.
# Chỉnh: đặt THẤP HƠN đỉnh đo được một chút để lệnh không
# vượt quá khả năng servo; đặt cao hơn thực tế -> lệnh chạy
@@ -341,7 +341,7 @@ StanleyDockingLocalPlanner:
# KHONG roi ve block position (bay log 23). Sua tham so chung thi sua CA HAI block.
# Cac dong override danh dau "DOCKING:". Comment chi tiet xem block position.
library_path: libstanley_local_planner
max_vel_x: 0.30 # [m/s] DOCKING: cham va co kiem soat
max_vel_x: 0.20 # [m/s] DOCKING: cham va co kiem soat
min_vel_x: -0.20 # [m/s] DOCKING: lui cham vao dock
wheel_base: 0.0 # [m] khoảng cách trục. 0 = tự đo từ TF front_axle_frame -> rear_axle_frame.
front_axle_frame: "steer_link"
@@ -351,10 +351,10 @@ StanleyDockingLocalPlanner:
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ. Ghi số cụ thể, KHÔNG ghi M_PI/2.
align_pivot_toward_curve: true # DOCKING: pivot do banh ve phia cua. ROBOT THAT: test drive nhan -90 truoc
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái".
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
max_steer_rate: 1.50 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
steer_zero_offset: 0.037 # [rad]
xy_goal_tolerance: 0.015 # [m] DOCKING: dung sai vi tri chat
yaw_goal_tolerance: 0.010 # [rad] DOCKING: dung sai goc chat
xy_goal_tolerance: 0.020 # [m] DOCKING: dung sai vi tri chat
yaw_goal_tolerance: 0.030 # [rad] DOCKING: dung sai goc chat
goal_sq_dist_tol: 0.05 # [m^2] thoát sớm vòng scan điểm gần nhất.
path_yaw_mode: "tangent" # tangent | bearing. "bearing" là hành vi cũ, giữ để rollback
control_gain_e: 2.0 # gain hướng (tangent path - yaw robot).
@@ -390,8 +390,8 @@ StanleyDockingLocalPlanner:
mid_curvature: 0.20 # [1/m] trên ngưỡng: cắt cửa sổ transform.
low_curvature: 0.10 # [1/m] trên ngưỡng: vào chế độ cong.
straight_confirm_steps: 110 # số chu kỳ thẳng liên tiếp trước khi rời chế độ cong.
speed_base: 0.30 # [m/s] nền của profile lái cosine.
curve_max_speed: 0.25 # [m/s] trần khi đang cong.
speed_base: 0.20 # [m/s] nền của profile lái cosine.
curve_max_speed: 0.20 # [m/s] trần khi đang cong.
min_drive_speed: 0.07 # [m/s] sàn khi đang chạy.
accel_distance: 2.00 # [m] quãng tăng tốc lại sau khi rời cua.
decel_min: 0.05 # [m/s mỗi chu kỳ] mức giảm tốc khi dự đoán va chạm.
@@ -441,7 +441,7 @@ StanleyGoStraightLocalPlanner:
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ. Ghi số cụ thể, KHÔNG ghi M_PI/2.
align_pivot_toward_curve: true # true: path cong ngay từ pose 0 (|ff| > 0.30 rad) thì pivot đỗ
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái".
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
max_steer_rate: 1.50 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
steer_zero_offset: 0.037 # [rad]
xy_goal_tolerance: 0.015 # [m] GO_STRAIGHT: dung sai chat nhu docking
yaw_goal_tolerance: 0.010 # [rad]
@@ -531,7 +531,7 @@ StanleyRotateLocalPlanner:
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ. Ghi số cụ thể, KHÔNG ghi M_PI/2.
align_pivot_toward_curve: true # true: path cong ngay từ pose 0 (|ff| > 0.30 rad) thì pivot đỗ
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái".
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
max_steer_rate: 1.50 # [rad/s] tốc độ quay servo lái. Đo bằng [DBG-STEER] 07/08:
steer_zero_offset: 0.037 # [rad]
xy_goal_tolerance: 0.10 # [m] ROTATE: goal ngay duoi chan robot — latch XY ngay lap tuc, chi con xoay yaw (Phase B)
yaw_goal_tolerance: 0.010 # [rad] ROTATE: dung sai goc la san pham chinh