Skip to content

Commit 4a37d87

Browse files
Merge pull request #276 from clearpathrobotics/fix/guard_include_zed
Add guard to include zed only once
2 parents 85ec447 + 0f46b9d commit 4a37d87

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

clearpath_platform_description/urdf/common.urdf.xacro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
4040
<color rgba="0.1 0.1 0.1 1"/>
4141
</material>
4242

43+
<xacro:property name="guard_include_zed" value="true" lazy_eval="true"/>
44+
45+
4346
<!--
4447
Standard Mount: adds link (w/o geometry) at given position
4548
- assumes orientation of parent

clearpath_sensors_description/urdf/stereolabs_zed.urdf.xacro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?xml version="1.0"?>
22
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
3-
<xacro:include filename="$(find zed_wrapper)/urdf/zed_macro.urdf.xacro" />
3+
4+
<xacro:if value="${guard_include_zed}">
5+
<xacro:property name="guard_include_zed" value="false" lazy_eval="false"/>
6+
<xacro:include filename="$(find zed_wrapper)/urdf/zed_macro.urdf.xacro"/>
7+
</xacro:if>
8+
49
<xacro:macro name="stereolabs_zed" params="
510
name
611
parent_link

0 commit comments

Comments
 (0)