/
demo.xml
138 lines (130 loc) · 3.98 KB
/
demo.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" ?>
<copter>
<plate file="circular_plate.obj" density="1180.0">
<instance size="0.18 0.18">
<!-- Lift by 0.1m to avoid penetrating the ground. -->
<translate xyz="0 0 -0.1"/>
</instance>
<instance size="0.18 0.18">
<translate xyz="0 0 -0.1"/>
<!-- 0.0024m is the thickness of the plate. -->
<translate xyz="0 0 -0.0024"/>
<!-- 0.0456m is the size of the connector. -->
<translate xyz="0 0 -0.0456"/>
</instance>
</plate>
<battery file="battery.obj" density="2857.1" capacity="2200">
<translate xyz="0 0 -0.1"/>
<translate xyz="0 0 0.0024"/>
<translate xyz="0 -0.045 0.025"/>
</battery>
<electronics file="electronics.obj" density="601.6">
<!-- The electronic device is placed on top of the upper plate. -->
<translate xyz="0 0 -0.148"/>
<!-- Lift by 0.01 more because the mesh itself has thickness. -->
<translate xyz="0 0 -0.01"/>
</electronics>
<tube file="tube.obj" density="1638.9">
<instance length="0.2">
<translate xyz="0 0 -0.1"/>
<!-- 0.0012 is half of the thickness of a plate. -->
<translate xyz="0 0 -0.0012"/>
<!-- 0.0228 is half of the size of a connector. -->
<translate xyz="0 0 -0.0228"/>
<translate xyz="0.15 0 0"/>
</instance>
<instance length="0.2">
<translate xyz="0.15 0 -0.124"/>
<rotate rpy="0 0 72"/>
</instance>
<instance length="0.2">
<translate xyz="0.15 0 -0.124"/>
<rotate rpy="0 0 144"/>
</instance>
<instance length="0.2">
<translate xyz="0.15 0 -0.124"/>
<rotate rpy="0 0 -144"/>
</instance>
<instance length="0.2">
<translate xyz="0.15 0 -0.124"/>
<rotate rpy="0 0 -72"/>
</instance>
</tube>
<round_connector file="connector.obj" density="1170.0">
<instance>
<translate xyz="0.07 0 -0.124"/>
</instance>
<instance>
<translate xyz="0.07 0 -0.124"/>
<rotate rpy="0 0 72"/>
</instance>
<instance>
<translate xyz="0.07 0 -0.124"/>
<rotate rpy="0 0 144"/>
</instance>
<instance>
<translate xyz="0.07 0 -0.124"/>
<rotate rpy="0 0 -144"/>
</instance>
<instance>
<translate xyz="0.07 0 -0.124"/>
<rotate rpy="0 0 -72"/>
</instance>
<instance>
<translate xyz="0.23 0 -0.124"/>
</instance>
<instance>
<translate xyz="0.23 0 -0.124"/>
<rotate rpy="0 0 72"/>
</instance>
<instance>
<translate xyz="0.23 0 -0.124"/>
<rotate rpy="0 0 144"/>
</instance>
<instance>
<translate xyz="0.23 0 -0.124"/>
<rotate rpy="0 0 -144"/>
</instance>
<instance>
<translate xyz="0.23 0 -0.124"/>
<rotate rpy="0 0 -72"/>
</instance>
</round_connector>
<propeller file="propeller_10inch.obj"/>
<motor file="motor.obj" density="4833.3" measurement="motor_10inch_prop.txt"
propeller_height="0.019">
<instance spin_dir="cw">
<!-- Location of its parent connector. -->
<translate xyz="0.23 0 -0.124"/>
<!-- Half size of its parent connector. -->
<translate xyz="0 0 -0.0228"/>
<!-- 0.018 is the distance between the bottom surface and the center of
the motor. -->
<translate xyz="0 0 -0.018"/>
</instance>
<instance spin_dir="cw">
<translate xyz="0.23 0 -0.124"/>
<translate xyz="0 0 -0.0228"/>
<translate xyz="0 0 -0.018"/>
<rotate rpy="0 0 72"/>
</instance>
<instance spin_dir="ccw">
<translate xyz="0.23 0 -0.124"/>
<translate xyz="0 0 -0.0228"/>
<translate xyz="0 0 -0.018"/>
<rotate rpy="0 0 144"/>
</instance>
<instance spin_dir="cw">
<translate xyz="0.23 0 -0.124"/>
<translate xyz="0 0 -0.0228"/>
<translate xyz="0 0 -0.018"/>
<rotate rpy="0 0 -144"/>
</instance>
<instance spin_dir="ccw">
<translate xyz="0.23 0 -0.124"/>
<translate xyz="0 0 -0.0228"/>
<translate xyz="0 0 -0.018"/>
<rotate rpy="0 0 -72"/>
</instance>
</motor>
</copter>