43 lines
1.7 KiB
Plaintext
43 lines
1.7 KiB
Plaintext
|
<?xml version="1.0"?>
|
||
|
|
||
|
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
|
||
|
|
||
|
<xacro:macro name="leg_transmission" params="name">
|
||
|
|
||
|
<transmission name="${name}_hip_tran">
|
||
|
<type>transmission_interface/SimpleTransmission</type>
|
||
|
<joint name="${name}_hip_joint">
|
||
|
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
|
||
|
</joint>
|
||
|
<actuator name="${name}_hip_motor">
|
||
|
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
|
||
|
<mechanicalReduction>1</mechanicalReduction>
|
||
|
</actuator>
|
||
|
</transmission>
|
||
|
|
||
|
<transmission name="${name}_thigh_tran">
|
||
|
<type>transmission_interface/SimpleTransmission</type>
|
||
|
<joint name="${name}_thigh_joint">
|
||
|
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
|
||
|
</joint>
|
||
|
<actuator name="${name}_thigh_motor">
|
||
|
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
|
||
|
<mechanicalReduction>1</mechanicalReduction>
|
||
|
</actuator>
|
||
|
</transmission>
|
||
|
|
||
|
<transmission name="${name}_calf_tran">
|
||
|
<type>transmission_interface/SimpleTransmission</type>
|
||
|
<joint name="${name}_calf_joint">
|
||
|
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
|
||
|
</joint>
|
||
|
<actuator name="${name}_calf_motor">
|
||
|
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
|
||
|
<mechanicalReduction>1</mechanicalReduction>
|
||
|
</actuator>
|
||
|
</transmission>
|
||
|
|
||
|
</xacro:macro>
|
||
|
|
||
|
</robot>
|