Update wheel configuration in URDF

This commit is contained in:
Matt Spencer committed 2026-10-20 14:01:10 -07:00
1 parent c9144028f8
commit 8b0d1c363d
2 files changed
+11 -9

No files matched your search

+3 -2
View File
@@ -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. to confirm it applies the same convention end-to-end.
- [ ] Determine real `gear_ratio` (currently 1.0 placeholder) from the drivetrain so - [ ] Determine real `gear_ratio` (currently 1.0 placeholder) from the drivetrain so
commanded/measured velocity is in correct SI units at the wheel. 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 - [ ] Finish tuning `kp`/`kd` velocity-mode gains for the real mecanum drivetrain.
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 - [ ] Confirm `can_timeout_ticks` (currently the package default, 4000 ticks = 200 ms) is an
appropriate watchdog window for this platform. appropriate watchdog window for this platform.
- [ ] Build-test: `colcon build` will build `robstride_ros2` and `ros2_socketcan` from - [ ] Build-test: `colcon build` will build `robstride_ros2` and `ros2_socketcan` from
@@ -142,9 +142,10 @@
flipped to -1 so a positive command consistently means "forward" on every wheel. flipped to -1 so a positive command consistently means "forward" on every wheel.
This assumes robstride_ros2's `direction` negates both command and feedback This assumes robstride_ros2's `direction` negates both command and feedback
consistently; not yet live-validated by commanding a wheel and watching it spin. 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 mecanum_drive_controller only commands velocity, so Kp is zeroed automatically by
the real mecanum drivetrain. mecanum_drive_controller only commands velocity, so Kp the driver in velocity mode. Kd=2.0 could not sustain in-place rotation against
is zeroed automatically by the driver in velocity mode (see robstride_ros2 README). 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.
--> -->
<xacro:include filename="$(find robstride_ros2_control)/description/robstride_motor_profiles.xacro"/> <xacro:include filename="$(find robstride_ros2_control)/description/robstride_motor_profiles.xacro"/>
@@ -158,22 +159,22 @@
<param name="feedback_timeout_ms">8000</param> <param name="feedback_timeout_ms">8000</param>
</hardware> </hardware>
<joint name="${prefix}front_left_wheel_joint"> <joint name="${prefix}front_left_wheel_joint">
<xacro:robstride_rs01_params can_id="1" direction="-1" kp="0.0" kd="0.8" <xacro:robstride_rs01_params can_id="1" direction="-1" kp="0.0" kd="3.5"
command_velocity_min="-30.0" command_velocity_max="30.0"/> command_velocity_min="-30.0" command_velocity_max="30.0"/>
<xacro:robstride_joint_interfaces/> <xacro:robstride_joint_interfaces/>
</joint> </joint>
<joint name="${prefix}front_right_wheel_joint"> <joint name="${prefix}front_right_wheel_joint">
<xacro:robstride_rs01_params can_id="2" direction="1" kp="0.0" kd="0.8" <xacro:robstride_rs01_params can_id="2" direction="1" kp="0.0" kd="3.5"
command_velocity_min="-30.0" command_velocity_max="30.0"/> command_velocity_min="-30.0" command_velocity_max="30.0"/>
<xacro:robstride_joint_interfaces/> <xacro:robstride_joint_interfaces/>
</joint> </joint>
<joint name="${prefix}rear_left_wheel_joint"> <joint name="${prefix}rear_left_wheel_joint">
<xacro:robstride_rs01_params can_id="3" direction="-1" kp="0.0" kd="0.8" <xacro:robstride_rs01_params can_id="3" direction="-1" kp="0.0" kd="3.5"
command_velocity_min="-30.0" command_velocity_max="30.0"/> command_velocity_min="-30.0" command_velocity_max="30.0"/>
<xacro:robstride_joint_interfaces/> <xacro:robstride_joint_interfaces/>
</joint> </joint>
<joint name="${prefix}rear_right_wheel_joint"> <joint name="${prefix}rear_right_wheel_joint">
<xacro:robstride_rs01_params can_id="4" direction="1" kp="0.0" kd="0.8" <xacro:robstride_rs01_params can_id="4" direction="1" kp="0.0" kd="3.5"
command_velocity_min="-30.0" command_velocity_max="30.0"/> command_velocity_min="-30.0" command_velocity_max="30.0"/>
<xacro:robstride_joint_interfaces/> <xacro:robstride_joint_interfaces/>
</joint> </joint>