From 92096aef62dcddcc08047998a53b48ab1c0b5c34 Mon Sep 17 00:00:00 2001 From: walunt5 Date: Sat, 24 Oct 2026 21:48:07 +0800 Subject: [PATCH] =?UTF-8?q?tune(minco=5Fws):=20kp=5Fpos=200.8=E2=86=920.5?= =?UTF-8?q?=EF=BC=8C=E5=87=8F=E5=B0=8F=E7=BB=88=E7=82=B9=E8=BF=87=E5=86=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 闭环速度指令为 vel = 前馈 + kp_pos * 位置误差,**只有 P 项、无速度阻尼**; exec_time_ 到 traj_duration_ 后前馈归零,只剩纯 P 项,因此带速度接近终点 必然冲过头再被拉回,且回程方向带横向分量时会被 estimateDesiredYaw 转成 横向期望朝向(表现为'斜着调整回目标')。0.8→0.5 收尾更平滑。 --- .../src/scan/plan_manage/config/controllers_vehicle.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/minco_ws/src/scan/plan_manage/config/controllers_vehicle.yaml b/minco_ws/src/scan/plan_manage/config/controllers_vehicle.yaml index da5183b..44d251b 100644 --- a/minco_ws/src/scan/plan_manage/config/controllers_vehicle.yaml +++ b/minco_ws/src/scan/plan_manage/config/controllers_vehicle.yaml @@ -7,7 +7,10 @@ closed_loop_controller: time_forward: 0.8 # 朝向误差超过该值(rad)就原地转、不前进。四足原来 0.8,轮式收紧到 0.6。 heading_error_threshold: 0.6 - kp_pos: 0.8 + # 位置环只有 P 项(vel = 前馈 + kp_pos * 位置误差),没有速度阻尼, + # 因此 kp_pos 越大越容易在终点过冲、再被拉回来。 + # 0.8 实测会"冲过头 + 斜着调整",降到 0.5 让末端收敛更平滑。 + kp_pos: 0.5 kp_yaw: 1.5 # ⚠️ 必须 <= 底盘限幅(techx_r2_chassis_control/config/chassis_serial.yaml 的 # max_vx_m_s / max_vy_m_s / max_wz_rad_s,当前均为 0.5)。