Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
use gazebo_renderer to set use_mesh
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <paulgesel@gmail.com>
  • Loading branch information
pac48 committed Feb 23, 2024
1 parent 1dfc6b6 commit d041f47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
<!-- wrist camera adapter and camera-->
<xacro:ur_realsense_camera_adapter prefix="" parent="${ur_realsense_camera_adapter_parent}" child_tool="realsense_camera_adapter_tool0" child_camera="d415_mount_link" rotation="0"/>

<xacro:property name="simulation" default="$(arg simulation)"/>
<xacro:realsense_d415 parent="d415_mount_link" name="wrist_mounted_camera" use_mesh="${not simulation == 'gazebo'}">
<xacro:property name="gazebo_renderer" default="$(arg gazebo_renderer)"/>
<xacro:realsense_d415 parent="d415_mount_link" name="wrist_mounted_camera" use_mesh="${not gazebo_renderer == 'ogre'}">
<origin xyz="0 0 0" rpy="0 0 0"/>
</xacro:realsense_d415>

<xacro:ur_to_robotiq prefix="" parent="realsense_camera_adapter_tool0" child="gripper_mount_link" rotation="0"/>

<xacro:property name="simulation" default="$(arg simulation)"/>
<xacro:if value="${simulation == 'gazebo'}">
<xacro:property name="use_fake_hardware" default="false"/>
<xacro:property name="sim_ignition" default="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<xacro:arg name="tool_voltage" default="0"/>
<xacro:arg name="tool_device_name" default="/dev/ttyUSB0"/>
<xacro:arg name="simulation" default=""/>
<xacro:arg name="gazebo_renderer" default=""/>

<xacro:if value="$(arg has_tool_changer)">
<xacro:property name="camera_adapter_parent" value="tool_changer_tool0"/>
Expand Down

0 comments on commit d041f47

Please sign in to comment.