Skip to content

Commit 54a6a11

Browse files
authored
Add a ground plane to the gz URDF (#61)
Since for Gazebo the ground plane is a relevant physical obstacle, the robot description should reflect that, so that planners will only consider solutions not crossing the ground plane.
1 parent 4d19be1 commit 54a6a11

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ur_simulation_gz/urdf/ur_gz.urdf.xacro

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,30 @@
2727
<!-- create link fixed to the "world" -->
2828
<link name="world" />
2929

30+
<link name="ground_plane">
31+
<visual>
32+
<origin rpy="0 0 0" xyz="0 0 0"/>
33+
<geometry>
34+
<box size="5 5 0"/>
35+
</geometry>
36+
<material name="ground_white">
37+
<color rgba="1 1 1 0.5"/>
38+
</material>
39+
</visual>
40+
<collision>
41+
<origin rpy="0 0 0" xyz="0 0 0"/>
42+
<geometry>
43+
<box size="5 5 0"/>
44+
</geometry>
45+
</collision>
46+
</link>
47+
48+
<joint name="ground_plane_joint" type="fixed">
49+
<origin xyz="0 0 -0.01" rpy="0 0 0"/>
50+
<parent link="world"/>
51+
<child link="ground_plane"/>
52+
</joint>
53+
3054
<!-- arm -->
3155
<xacro:ur_robot
3256
name="$(arg name)"

0 commit comments

Comments
 (0)