22
33<robot xmlns : xacro =" http://www.ros.org/wiki/xacro" >
44
5- <!-- Package to load velodyne sensor
6- <xacro:include filename="$(find velodyne_description)/urdf/VLP-16.urdf.xacro" /-->
7-
85 <!-- Some properties -->
96 <xacro : include filename =" $(find curt_mini)/models/curt_mini/properties.xacro" />
107
11-
12- <!-- Xsens IMU -->
13- <!-- <joint name="base_link_to_imu" type="fixed">
14- <parent link="base_link" />
15- <child link="imu_link" />
16- <origin xyz="0.035 0.03 0.12" rpy="0.0 3.14159 0.0"/>
17- </joint> -->
18-
198 <!-- LPResearch CANAL3 IMU -->
209 <joint name =" base_link_to_imu" type =" fixed" >
2110 <parent link =" base_link" />
2514 </joint >
2615 <link name =" imu_link" />
2716
28- <!-- GPS -->
29- <joint name =" base_link_to_gps" type =" fixed" >
30- <parent link =" base_link" />
31- <child link =" gps_link" />
32- <origin xyz =" -0.14 0.0 0.34" />
33- </joint >
34- <link name =" gps_link" />
35-
36- <!-- Camera -->
37- <joint name =" base_link_to_camera" type =" fixed" >
38- <parent link =" base_link" />
39- <child link =" camera_link" />
40- <origin xyz =" 0.32 0.02 0.18" rpy =" 0.0 0.2792 0.0" /> <!-- 16° down -->
41- </joint >
42- <link name =" camera_link" >
43- <visual >
44- <origin rpy =" 0.0 0.0 0.0" xyz =" 0 0 0" />
45- <geometry >
46- <box size =" 0.10 0.05 0.05" />
47- </geometry >
48- <material name =" grey" />
49- </visual >
50- </link >
51-
52- <!-- lidar robosense -->
53- <joint name =" base_link_to_lidar" type =" fixed" >
54- <parent link =" base_link" />
55- <child link =" lidar_link" />
56- <origin xyz =" 0.215 0.0 0.4" rpy =" 0 0 0" />
57- </joint >
58- <link name =" lidar_link" />
59-
60- <!-- lidar ouster
61- <joint name="base_link_to_lidar" type="fixed">
62- <parent link="base_link" />
63- <child link="lidar_link" />
64- <origin xyz="0.2 0.0 0.4" rpy="0 0 0" />
65- </joint>
66- <link name="lidar_link" />
67- -->
68-
69- <gazebo reference =" lidar_link" >
70- <sensor name =' gpu_lidar' type =' gpu_lidar' >
71- <gz_frame_id >lidar_link</gz_frame_id >
72- <topic >lidar</topic >
73- <update_rate >20</update_rate >
74- <ray >
75- <scan >
76- <horizontal >
77- <samples >1024</samples >
78- <resolution >1</resolution >
79- <min_angle >${-pi}</min_angle >
80- <max_angle >${pi}</max_angle >
81- </horizontal >
82- <vertical >
83- <samples >32</samples >
84- <resolution >1</resolution >
85- <min_angle >${-pi/4}</min_angle >
86- <max_angle >${pi/4}</max_angle >
87- </vertical >
88- </scan >
89- <range >
90- <min >0.5</min >
91- <max >35.0</max >
92- </range >
93- </ray >
94- <always_on >1</always_on >
95- <visualize >true</visualize >
96- </sensor >
97- </gazebo >
98- <!--
99- <xacro:VLP-16 parent="lidar_link" name="velodyne" topic="/ouster/points" organize_cloud="false" min_range="0.1" hz="10" samples="1875" gpu="true">
100- <origin xyz="0.0 0.0 0.0" rpy="0 0 0" />
101- </xacro:VLP-16>
102- -->
103- <!-- <xacro:macro name="VLP-16" params="*origin parent:=base_link name:=velodyne tf_prefix:='' topic:=/velodyne_points organize_cloud:=false hz:=10 lasers:=16 samples:=1875 collision_range:=0.3 min_range:=0.9 max_range:=130.0 noise:=0.008 min_angle:=-${M_PI} max_angle:=${M_PI} gpu:=false"> -->
104-
105- <!-- Velodyne
106- <xacro:VLP-16 parent="base_link" name="velodyne" topic="/lidar_points" organize_cloud="false" hz="10" samples="440" gpu="false">
107- <origin xyz="0.175 0.0 0.31" rpy="0 0 ${PI}" />
108- </xacro:VLP-16> -->
109-
110-
111- <!-- livox mid-70 lidar -->
112- <!-- Mounted with 3D printed mounting adapter centered in Y-direction and as far forward as
113- possible on the robot -->
114- <!-- front bottom edge of housing -->
115- <joint name =" base_link_to_livox" type =" fixed" >
116- <parent link =" base_link" />
117- <child link =" livox_housing" />
118- <origin xyz =" 0.268 0.0 0.25" rpy =" 0 0 0" />
119- </joint >
120- <link name =" livox_housing" />
121-
122- <!-- livox sensor frame -->
123- <joint name =" livox_internal_offset" type =" fixed" >
124- <parent link =" livox_housing" />
125- <child link =" livox" />
126- <origin xyz =" -0.0162 0.0 0.0324" rpy =" 0 0 0" />
127- </joint >
128- <link name =" livox" />
129-
13017</robot >
0 commit comments