Skip to content

Commit

Permalink
Suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Jan 29, 2024
1 parent 52c6c9e commit 93fb219
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions urdf/stereolabs_zed.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
<xacro:macro name="zed_camera"
params="parent_link xyz rpy
model:=zed
namespace:=None
tf_prefix:=None
name:=camera
topic:=camera
use_nominal_extrinsics:=false
namespace:=None
simulation_engine:=ignition-gazebo">

<xacro:if value="${namespace == 'None'}">
Expand Down Expand Up @@ -93,10 +91,10 @@
</xacro:if>

<!-- Camera mounting point (the threaded screw hole in the bottom) -->
<link name="${prefix}${name}_link" />
<link name="${prefix}${name}_camera_link" />
<joint name="${prefix}${name}_base_joint" type="fixed">
<parent link="${parent_link}" />
<child link="${prefix}${name}_link" />
<child link="${prefix}${name}_camera_link" />
<origin xyz="${xyz}" rpy="${rpy}" />
</joint>

Expand Down Expand Up @@ -195,7 +193,7 @@
<always_on>true</always_on>
<update_rate>30.0</update_rate>

<topic>${ns}zed/zed_node/rgb/image_rect_color</topic>
<topic>${ns}${prefix}${name}/zed_node/rgb/image_rect_color</topic>
<visualize>false</visualize>

<ignition_frame_id>${prefix}${name}_center_optical_frame</ignition_frame_id>
Expand All @@ -220,7 +218,7 @@
<always_on>true</always_on>
<update_rate>30.0</update_rate>

<topic>${ns}zed/zed_node/depth</topic>
<topic>${ns}${prefix}${name}/zed_node/depth</topic>
<visualize>false</visualize>

<ignition_frame_id>${prefix}${name}_center_optical_frame</ignition_frame_id>
Expand Down

0 comments on commit 93fb219

Please sign in to comment.