Skip to content

Commit

Permalink
Merge pull request PR2#248 from archielee/indigo-devel
Browse files Browse the repository at this point in the history
Changed urdf to use optenvs instead of params to keep consistent
  • Loading branch information
archielee committed Jan 29, 2016
2 parents b6fe741 + df9c285 commit 8246f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions pr2_description/robots/pr2.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@
</xacro:wge100_camera_v0>

<!-- Kinect models -->
<xacro:arg name="kinect2" default="false"/>

<!-- Kinect1 xacro -->
<xacro:unless value="$(arg kinect2)">
<xacro:if value="$(optenv KINECT1 false)">
<xacro:include filename="$(find pr2_description)/urdf/sensors/kinect_prosilica_camera.urdf.xacro" />
<!-- Base of Kinect/Prosilica Mount -->
<xacro:kinect_prosilica_camera_swept_back_v0 name="head_mount" parent="head_plate_frame" >
Expand All @@ -157,10 +155,10 @@
Just need to roscd and svn up.
-->
</xacro:kinect_prosilica_camera_swept_back_v0>
</xacro:unless>
</xacro:if>

<!-- Kinect2 xacro -->
<xacro:if value="$(arg kinect2)">
<xacro:if value="$(optenv KINECT2 false)">
<xacro:include filename="$(find pr2_description)/urdf/sensors/kinect2.urdf.xacro" />
<xacro:kinect2_v0 name="head_mount" parent="head_plate_frame" >
<origin xyz="-0.137376 0 0.091746" rpy="0 0 0" />
Expand Down
4 changes: 2 additions & 2 deletions pr2_description/robots/upload_pr2.launch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<launch>
<!-- send pr2 urdf to param server -->
<group if="$(optenv KINECT2)">
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro' kinect2:=true" />
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'" />
</group>
<group unless="$(optenv KINECT2)">
<group if="$(optenv KINECT1)">
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro' kinect2:=false" />
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'" />
</group>
<group unless="$(optenv KINECT1)">
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2_no_kinect.urdf.xacro'" />
Expand Down

0 comments on commit 8246f2a

Please sign in to comment.