Skip to content

Commit

Permalink
PR #2689 from SamerKhshiboun: clone PR1637 to ros2-development
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Apr 12, 2023
2 parents 93af9cb + c6914f0 commit 4a868d3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions realsense2_description/urdf/_materials.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ Collection of materials to be used in other macros.
This avoids the redefinition of materials in case multple cameras are imported.
-->

<robot>
<material name="aluminum">
<color rgba="0.5 0.5 0.5 1"/>
</material>
<material name="plastic">
<color rgba="0.1 0.1 0.1 1"/>
</material>
<robot xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:property name="realsense_materials_defined" default="false" />
<xacro:unless value="${realsense_materials_defined}">
<xacro:property name="realsense_materials_defined" value="true" />
<material name="aluminum">
<color rgba="0.5 0.5 0.5 1"/>
</material>
<material name="plastic">
<color rgba="0.1 0.1 0.1 1"/>
</material>
</xacro:unless>
</robot>

0 comments on commit 4a868d3

Please sign in to comment.