PX4 simulation stack
model.sdf
Go to the documentation of this file.
1 <?xml version="1.0" ?>
2 <sdf version="1.6">
3  <model name="lidar_2d">
4  <link name="lidar_link">
5 
6  <inertial>
7  <pose>0 0 0 0 -0 0</pose>
8  <mass>0.01</mass>
9  <inertia>
10  <ixx>2.1733e-6</ixx>
11  <ixy>0</ixy>
12  <ixz>0</ixz>
13  <iyy>2.1733e-6</iyy>
14  <iyz>0</iyz>
15  <izz>1.8e-7</izz>
16  </inertia>
17  </inertial>
18 
19  <visual name="laser_visual">
20  <geometry>
21  <cylinder>
22  <radius>0.006</radius>
23  <length>0.01</length>
24  </cylinder>
25  </geometry>
26  <material>
27  <script>
28  <name>Gazebo/DarkGrey</name>
29  <uri>file://media/materials/scripts/gazebo.material</uri>
30  </script>
31  </material>
32  </visual>
33 
34  <sensor name="laser" type="ray">
35  <pose>0 0 0 0 0 0</pose>
36  <ray>
37  <scan>
38  <horizontal>
39  <samples>720</samples>
40  <resolution>1</resolution>
41  <min_angle>-2.0944</min_angle>
42  <max_angle>2.0944</max_angle>
43  </horizontal>
44  </scan>
45  <range>
46  <min>0.1</min>
47  <max>30</max>
48  <resolution>0.01</resolution>
49  </range>
50  <noise>
51  <type>gaussian</type>
52  <mean>0.0</mean>
53  <stddev>0.01</stddev>
54  </noise>
55  </ray>
56  <plugin name="LaserPlugin" filename="libgazebo_ros_laser.so">
57  <topicName>/laser/scan</topicName>
58  <frameName>/lidar_link</frameName>
59  </plugin>
60  <always_on>1</always_on>
61  <update_rate>40</update_rate>
62  <visualize>true</visualize>
63  </sensor>
64  </link>
65  </model>
66 </sdf>
67 
68 <!-- vim: set et fenc= ff=unix sts=0 sw=2 ts=2 : -->