urdf下的transmission属性如下:
<transmission name="tran1">
<type>transmission_interface/SimpleTransmission</type>
<joint name="joint1">
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
</joint>
<actuator name="motor1">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
roalaunch时报错:
[FATAL] [1555737632.690393621]: No matching hardware interface found for 'hardware_interface/EffortJointInterface
[FATAL] [1555737632.690484449]: Could not initialize robot simulation interface
查阅资料:
https://github.com/ros-controls/ros_control/issues/280
大致是说gazebo版本问题,文件来自于kinetic,但是不可能换系统,遂放弃
ros官网对于transmission的阐述:
所以,去掉hardware_interface即可,改为:
<transmission name="tran1">
<type>transmission_interface/SimpleTransmission</type>
<joint name="joint1">
<hardwareInterface>EffortJointInterface</hardwareInterface>
</joint>
<actuator name="motor1">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>