Skip to content

Commit

Permalink
Only load Dynamixel hardware interface if end_effector_tool is set to…
Browse files Browse the repository at this point in the history
… articulable_fork
  • Loading branch information
jjaime2 committed Dec 20, 2024
1 parent ef1592b commit 669aa7d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ada_hardware/urdf/ada_hardware.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<xacro:arg name="sim" default="none" />
<xacro:arg name="readonly" default="false" />
<xacro:arg name="end_effector_tool" default="fork" />
<xacro:property name="end_effector_tool" value="$(arg end_effector_tool)" />

<xacro:include filename="$(find ada_description)/urdf/ada.xacro"/>

Expand All @@ -23,9 +24,11 @@
sim="$(arg sim)"
readonly="$(arg readonly)" />

<xacro:dynamixel_hardware_interface
name="DynamixelHardware"
sim="$(arg sim)"
readonly="$(arg readonly)" />
<xacro:if value="${end_effector_tool == 'articulable_fork'}">
<xacro:dynamixel_hardware_interface
name="DynamixelHardware"
sim="$(arg sim)"
readonly="$(arg readonly)" />
</xacro:if>

</robot>

0 comments on commit 669aa7d

Please sign in to comment.