diff --git a/TODO.md b/TODO.md index 48907b4..44bda0f 100644 --- a/TODO.md +++ b/TODO.md @@ -104,8 +104,9 @@ package, after empirically confirming real CAN communication with the wheel driv to confirm it applies the same convention end-to-end. - [ ] Determine real `gear_ratio` (currently 1.0 placeholder) from the drivetrain so commanded/measured velocity is in correct SI units at the wheel. -- [ ] Tune `kp`/`kd` velocity-mode gains (currently placeholder `kp=0.0 kd=0.8`) for the - real mecanum drivetrain. +- [ ] Finish tuning `kp`/`kd` velocity-mode gains for the real mecanum drivetrain. + `kp=0.0 kd=2.0` could not sustain a continuous in-place yaw against scrub friction; + `kd=3.5` is the next live-test value (RS01 maximum is 5.0). - [ ] Confirm `can_timeout_ticks` (currently the package default, 4000 ticks = 200 ms) is an appropriate watchdog window for this platform. - [ ] Build-test: `colcon build` will build `robstride_ros2` and `ros2_socketcan` from diff --git a/src/elephant_robotics/agv_pro_description/urdf/control/agv_pro.ros2_control.xacro b/src/elephant_robotics/agv_pro_description/urdf/control/agv_pro.ros2_control.xacro index 47a77af..6191846 100644 --- a/src/elephant_robotics/agv_pro_description/urdf/control/agv_pro.ros2_control.xacro +++ b/src/elephant_robotics/agv_pro_description/urdf/control/agv_pro.ros2_control.xacro @@ -142,9 +142,10 @@ flipped to -1 so a positive command consistently means "forward" on every wheel. This assumes robstride_ros2's `direction` negates both command and feedback consistently; not yet live-validated by commanding a wheel and watching it spin. - kp/kd and command_velocity_min/max are placeholder starting gains/limits — tune for - the real mecanum drivetrain. mecanum_drive_controller only commands velocity, so Kp - is zeroed automatically by the driver in velocity mode (see robstride_ros2 README). + mecanum_drive_controller only commands velocity, so Kp is zeroed automatically by + the driver in velocity mode. Kd=2.0 could not sustain in-place rotation against + mecanum scrub friction during a continuous -0.4 rad/s yaw test; use 3.5 as the next + bounded tuning step. RS01 permits Kd up to 5.0. --> @@ -158,22 +159,22 @@ 8000 - - - -