Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use packages to find mesh at run time #513

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions depthai_descriptions/urdf/include/base_macro.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<robot name="base"
xmlns:xacro="http://ros.org/wiki/xacro">

<xacro:macro name="base" params="camera_name camera_model parent base_frame
cam_pos_x cam_pos_y cam_pos_z
<xacro:macro name="base" params="camera_name camera_model parent base_frame
cam_pos_x cam_pos_y cam_pos_z
cam_roll cam_pitch cam_yaw has_imu r:=0.8 g:=0.8 b:=0.8 a:=0.8 ">
<!-- base_link of the sensor-->
<link name="${base_frame}"/>
Expand All @@ -21,7 +21,7 @@
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="file://$(find depthai_descriptions)/urdf/models/${model}.stl" />
<mesh filename="package://depthai_descriptions/urdf/models/${model}.stl" />
</geometry>
<material name="mat">
<color rgba="${r} ${g} ${b} ${a}"/>
Expand Down Expand Up @@ -75,4 +75,4 @@
</xacro:if>

</xacro:macro>
</robot>
</robot>
Loading