Skip to content

Commit

Permalink
fix hardware type for ros2 URDF tag
Browse files Browse the repository at this point in the history
  • Loading branch information
iris@I2RM_PC2 authored and iris@I2RM_PC2 committed Oct 30, 2023
1 parent 699f008 commit 9238932
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@

<xacro:macro name="ft_sensor_r2c_hardware" params="use_sim:=^|false use_fake_hardware:=^|true">

<ros2_control name="ft" type="sensor">
<xacro:if value="${use_fake_hardware}">
<xacro:property name="hw_type" value="sensor" />
</xacro:if>

<xacro:unless value="${use_fake_hardware}">
<xacro:property name="hw_type" value="system" />
</xacro:unless>

<ros2_control name="ft" type="${hw_type}">

<xacro:if value="$(arg use_sim)">
<hardware>
Expand Down

0 comments on commit 9238932

Please sign in to comment.