Skip to content

Commit

Permalink
Add additional guards if user sets use_fake_hardware and use_internal…
Browse files Browse the repository at this point in the history
…_bus_gripper_comm true
  • Loading branch information
MarqRazz committed Nov 28, 2023
1 parent 42651c1 commit c9a4fe4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
16 changes: 9 additions & 7 deletions kortex_description/arms/gen3/7dof/urdf/kortex.ros2_control.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,15 @@
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<xacro:if value="${use_internal_bus_gripper_comm}">
<joint name="${prefix}${gripper_joint_name}">
<command_interface name="position" />
<state_interface name="position"/>
<state_interface name="velocity"/>
</joint>
</xacro:if>
<xacro:unless value="${use_fake_hardware or sim_gazebo or sim_ignition or sim_isaac}">
<xacro:if value="${use_internal_bus_gripper_comm}">
<joint name="${prefix}${gripper_joint_name}">
<command_interface name="position" />
<state_interface name="position"/>
<state_interface name="velocity"/>
</joint>
</xacro:if>
</xacro:unless>
</ros2_control>
</xacro:macro>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@
<state_interface name="velocity"/>
<state_interface name="effort"/>
</joint>
<xacro:if value="${use_internal_bus_gripper_comm}">
<joint name="${prefix}right_finger_bottom_joint">
<command_interface name="position"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
</joint>
</xacro:if>
<xacro:unless value="${use_fake_hardware or sim_gazebo or sim_ignition or sim_isaac}">
<xacro:if value="${use_internal_bus_gripper_comm}">
<joint name="${prefix}right_finger_bottom_joint">
<command_interface name="position"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
</joint>
</xacro:if>
</xacro:unless>
</ros2_control>
</xacro:macro>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
isaac_joint_commands="${isaac_joint_commands}"
isaac_joint_states="${isaac_joint_states}">
<origin xyz="0 0 0" rpy="0 0 0" />
</xacro:robotiq_gripper>
</xacro:robotiq_gripper>
</xacro:macro>
</robot>

0 comments on commit c9a4fe4

Please sign in to comment.