2022-01-17 02:25:44 +04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
|
|
|
|
<xacro:macro name="rasmt_hand_hi" params="prefix sim">
|
|
|
|
<!-- arg for control mode -->
|
|
|
|
<ros2_control name="rasmt_hand_hi" type="system">
|
|
|
|
|
2023-02-03 07:04:12 +00:00
|
|
|
<xacro:if value="${sim == 'gazebo'}">
|
2022-01-17 02:25:44 +04:00
|
|
|
<hardware>
|
|
|
|
<plugin>gazebo_ros2_control/GazeboSystem</plugin>
|
|
|
|
</hardware>
|
|
|
|
</xacro:if>
|
2023-02-03 07:04:12 +00:00
|
|
|
<xacro:if value="${sim == 'ignition'}">
|
|
|
|
<hardware>
|
|
|
|
<plugin>ign_ros2_control/IgnitionSystem</plugin>
|
|
|
|
</hardware>
|
|
|
|
</xacro:if>
|
2022-01-17 02:25:44 +04:00
|
|
|
|
2023-02-03 07:04:12 +00:00
|
|
|
<!-- <xacro:if value="${sim == 'fake'}">
|
2022-01-17 02:25:44 +04:00
|
|
|
<hardware>
|
|
|
|
<plugin>fake_components/GenericSystem</plugin>
|
|
|
|
</hardware>
|
2023-02-03 07:04:12 +00:00
|
|
|
</xacro:if> -->
|
2022-01-17 02:25:44 +04:00
|
|
|
|
|
|
|
<joint name="${prefix}_Slide_1">
|
2023-02-03 07:04:12 +00:00
|
|
|
<command_interface name="effort"/>
|
2022-01-17 02:25:44 +04:00
|
|
|
<state_interface name="position"/>
|
|
|
|
<state_interface name="velocity"/>
|
|
|
|
<state_interface name="effort"/>
|
|
|
|
</joint>
|
|
|
|
|
|
|
|
<joint name="${prefix}_Slide_2">
|
2023-02-03 07:04:12 +00:00
|
|
|
<command_interface name="effort"/>
|
2022-01-17 02:25:44 +04:00
|
|
|
<state_interface name="position"/>
|
|
|
|
<state_interface name="velocity"/>
|
|
|
|
<state_interface name="effort"/>
|
|
|
|
</joint>
|
|
|
|
|
|
|
|
</ros2_control>
|
|
|
|
</xacro:macro>
|
|
|
|
</robot>
|