-
Notifications
You must be signed in to change notification settings - Fork 35
/
example.urdf.xacro
45 lines (40 loc) · 1.35 KB
/
example.urdf.xacro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="example">
<xacro:arg name="gpu" default="false"/>
<xacro:property name="gpu" value="$(arg gpu)" />
<!-- Base Footprint -->
<link name="base_footprint" />
<!-- Base Link -->
<joint name="footprint" type="fixed" >
<parent link="base_footprint" />
<child link="base_link" />
<origin xyz="0 0 0.05" rpy="0 0 0" />
</joint>
<link name="base_link" >
<visual>
<geometry>
<box size="0.5 0.5 0.1" />
</geometry>
</visual>
<collision>
<geometry>
<box size="0.5 0.5 0.1" />
</geometry>
</collision>
<inertial>
<origin xyz="0 0 0"/>
<mass value="10"/>
<inertia ixx="3.0" ixy="0.0" ixz="0.0"
iyy="3.0" iyz="0.0"
izz="3.0" />
</inertial>
</link>
<xacro:include filename="$(find velodyne_description)/urdf/VLP-16.urdf.xacro"/>
<xacro:VLP-16 parent="base_link" name="velodyne" topic="/velodyne_points" hz="10" samples="440" gpu="${gpu}">
<origin xyz="0 0 0.4" rpy="0 0 0" />
</xacro:VLP-16>
<xacro:include filename="$(find velodyne_description)/urdf/HDL-32E.urdf.xacro"/>
<xacro:HDL-32E parent="base_link" name="velodyne2" topic="/velodyne_points2" hz="10" samples="220" gpu="${gpu}">
<origin xyz="0 0 0.6" rpy="0 0 0" />
</xacro:HDL-32E>
</robot>