-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsim.xml
69 lines (64 loc) · 2.22 KB
/
sim.xml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<sdf version="1.6">
<world name="default">
<!-- A light source -->
<include>
<uri>model://sun</uri>
</include>
<!-- Ground plane -->
<include>
<uri>model://ground_plane</uri>
</include>
<!-- Drone model -->
<model name='quadcopter'>
<pose>0 0 0.1 0 0 0</pose>
<link name='base_link'>
<!-- Drone visual representation -->
<visual name='base_link_visual'>
<geometry>
<mesh>
<uri>model://quadcopter/meshes/body.dae</uri>
</mesh>
</geometry>
</visual>
<!-- Inertial properties -->
<inertial>
<mass>1.5</mass>
<inertia>
<ixx>0.012</ixx>
<iyy>0.012</iyy>
<izz>0.024</izz>
</inertia>
</inertial>
<!-- Collision properties -->
<collision name='base_link_collision'>
<geometry>
<box>
<size>0.3 0.3 0.1</size>
</box>
</geometry>
</collision>
<!-- Motors -->
<plugin name='front_left_motor_model' filename='libgazebo_motor_model.so'>
<jointName>front_left_motor_joint</jointName>
<turningDirection>ccw</turningDirection>
<commandSubTopic>/gazebo/command/motor_speed</commandSubTopic>
</plugin>
<plugin name='front_right_motor_model' filename='libgazebo_motor_model.so'>
<jointName>front_right_motor_joint</jointName>
<turningDirection>cw</turningDirection>
<commandSubTopic>/gazebo/command/motor_speed</commandSubTopic>
</plugin>
<plugin name='rear_left_motor_model' filename='libgazebo_motor_model.so'>
<jointName>rear_left_motor_joint</jointName>
<turningDirection>cw</turningDirection>
<commandSubTopic>/gazebo/command/motor_speed</commandSubTopic>
</plugin>
<plugin name='rear_right_motor_model' filename='libgazebo_motor_model.so'>
<jointName>rear_right_motor_joint</jointName>
<turningDirection>ccw</turningDirection>
<commandSubTopic>/gazebo/command/motor_speed</commandSubTopic>
</plugin>
</link>
</model>
</world>
</sdf>