Skip to content

Commit fa6ffa3

Browse files
committed
Fixed URDF issues
1 parent eb2c49e commit fa6ffa3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clearpath_customization/project_description/urdf/donut.urdf.xacro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- move the mesh around w.r.t. the link's frame -->
1010
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>
1111
<!-- set color of the link -->
12-
<material name="donut_color">
12+
<material name="${name}_color">
1313
<color rgba="0 1.0 1.0 1.0"/>
1414
</material>
1515
<!-- add the mesh -->
@@ -22,7 +22,7 @@
2222
<!-- move the collision box around -->
2323
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.01"/>
2424
<!-- set color of the bounding box -->
25-
<material name="donut_color">
25+
<material name="${name}_color">
2626
<color rgba="0 1.0 1.0 1.0"/>
2727
</material>
2828
<!-- add the bounding box -->
@@ -33,7 +33,7 @@
3333
</link>
3434

3535
<!-- Connect to the rest of the robot using the parameters -->
36-
<joint name="${name}_joint"/>
36+
<joint name="${name}_joint" type="fixed">
3737
<child link="${name}_link"/>
3838
<parent link="${parent}"/>
3939
<xacro:insert_block name="origin"/>

clearpath_customization/project_description/urdf/project_description.urdf.xacro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</xacro:sensor_d435>
99

1010
<!-- Include macro from this package -->
11-
<xacro:include filename="$(find project_bringup)/urdf/donut.stl"/>
11+
<xacro:include filename="$(find project_description)/urdf/donut.urdf.xacro"/>
1212
<!-- Call macro to add mesh to robot -->
1313
<xacro:donut name="donut" parent="default_mount">
1414
<origin xyz="0.0 0.0 0.0" rpy="0.0 0.0 0.0"/>

0 commit comments

Comments
 (0)