unitree_ros/robots/z1_description/xacro/transmission.xacro

21 lines
685 B
Plaintext
Raw Normal View History

2022-11-16 22:56:34 +08:00
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="motorTransmission" params="name">
<transmission name="JointTrans${name}">
<type>transmission_interface/SimpleTransmission</type>
<joint name="joint${name}">
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
</joint>
<actuator name="Actuator${name}">
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
</xacro:macro>
</robot>