Skip to content

Commit f4423af

Browse files
committed
add transmission to the wheels:xacro.
1 parent 1468ffd commit f4423af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

urdf/include/common_macros.urdf.xacro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@
6565
<child link="${prefix}_wheel"/>
6666
<origin xyz="${pos_x_joint} ${reflect* pos_y_joint} ${pos_z_joint}" rpy="0 0 0"/>
6767
</joint>
68+
69+
<transmission name="${prefix}_wheel_transmission">
70+
<type>transmission_interface/SimpleTransmission</type>
71+
<joint name="${prefix}_wheel_joint">
72+
<hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
73+
</joint>
74+
<actuator name="${prefix}_motor">
75+
<hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
76+
<mechanicalReduction>1</mechanicalReduction>
77+
</actuator>
78+
</transmission>
79+
6880
</xacro:macro>
6981
<!-- ======================================================================= -->
7082

0 commit comments

Comments
 (0)