/
floor.wrl
318 lines (299 loc) · 8.05 KB
/
floor.wrl
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
#VRML V2.0 utf8
PROTO Joint [
exposedField SFVec3f center 0 0 0
exposedField MFNode children []
exposedField MFFloat llimit []
exposedField MFFloat lvlimit []
exposedField SFRotation limitOrientation 0 0 1 0
exposedField SFString name ""
exposedField SFRotation rotation 0 0 1 0
exposedField SFVec3f scale 1 1 1
exposedField SFRotation scaleOrientation 0 0 1 0
exposedField MFFloat stiffness [ 0 0 0 ]
exposedField SFVec3f translation 0 0 0
exposedField MFFloat ulimit []
exposedField MFFloat uvlimit []
exposedField SFString jointType ""
exposedField SFInt32 jointId -1
exposedField SFVec3f jointAxis 0 0 1
exposedField SFFloat gearRatio 1
exposedField SFFloat rotorInertia 0
exposedField SFFloat rotorResistor 0
exposedField SFFloat torqueConst 1
exposedField SFFloat encoderPulse 1
]
{
Transform {
center IS center
children IS children
rotation IS rotation
scale IS scale
scaleOrientation IS scaleOrientation
translation IS translation
}
}
PROTO Segment [
field SFVec3f bboxCenter 0 0 0
field SFVec3f bboxSize -1 -1 -1
exposedField SFVec3f centerOfMass 0 0 0
exposedField MFNode children [ ]
exposedField SFNode coord NULL
exposedField MFNode displacers [ ]
exposedField SFFloat mass 0
exposedField MFFloat momentsOfInertia [ 0 0 0 0 0 0 0 0 0 ]
exposedField SFString name ""
eventIn MFNode addChildren
eventIn MFNode removeChildren
]
{
Group {
addChildren IS addChildren
bboxCenter IS bboxCenter
bboxSize IS bboxSize
children IS children
removeChildren IS removeChildren
}
}
PROTO Humanoid [
field SFVec3f bboxCenter 0 0 0
field SFVec3f bboxSize -1 -1 -1
exposedField SFVec3f center 0 0 0
exposedField MFNode humanoidBody [ ]
exposedField MFString info [ ]
exposedField MFNode joints [ ]
exposedField SFString name ""
exposedField SFRotation rotation 0 0 1 0
exposedField SFVec3f scale 1 1 1
exposedField SFRotation scaleOrientation 0 0 1 0
exposedField MFNode segments [ ]
exposedField MFNode sites [ ]
exposedField SFVec3f translation 0 0 0
exposedField SFString version "1.1"
exposedField MFNode viewpoints [ ]
]
{
Transform {
bboxCenter IS bboxCenter
bboxSize IS bboxSize
center IS center
rotation IS rotation
scale IS scale
scaleOrientation IS scaleOrientation
translation IS translation
children [
Group {
children IS viewpoints
}
Group {
children IS humanoidBody
}
]
}
}
PROTO VisionSensor [
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField MFNode children [ ]
exposedField SFFloat fieldOfView 0.785398
exposedField SFString name ""
exposedField SFFloat frontClipDistance 0.01
exposedField SFFloat backClipDistance 10.0
exposedField SFString type "NONE"
exposedField SFInt32 sensorId -1
exposedField SFInt32 width 320
exposedField SFInt32 height 240
]
{
Transform {
rotation IS rotation
translation IS translation
children IS children
}
}
PROTO ForceSensor [
exposedField SFVec3f maxForce -1 -1 -1
exposedField SFVec3f maxTorque -1 -1 -1
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField SFInt32 sensorId -1
]
{
Transform {
translation IS translation
rotation IS rotation
}
}
PROTO Gyro [
exposedField SFVec3f maxAngularVelocity -1 -1 -1
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField SFInt32 sensorId -1
]
{
Transform {
translation IS translation
rotation IS rotation
}
}
PROTO AccelerationSensor [
exposedField SFVec3f maxAcceleration -1 -1 -1
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField SFInt32 sensorId -1
]
{
Transform {
translation IS translation
rotation IS rotation
}
}
PROTO PressureSensor [
exposedField SFFloat maxPressure -1
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 0 1 0
exposedField SFInt32 sensorId -1
]
{
Transform {
translation IS translation
rotation IS rotation
}
}
PROTO PhotoInterrupter [
exposedField SFVec3f transmitter 0 0 0
exposedField SFVec3f receiver 0 0 0
exposedField SFInt32 sensorId -1
]
{
Transform{
children [
Transform{
translation IS transmitter
}
Transform{
translation IS receiver
}
]
}
}
PROTO CylinderSensorZ [
exposedField SFFloat maxAngle -1
exposedField SFFloat minAngle 0
exposedField MFNode children [ ]
]
{
Transform{
rotation 1 0 0 1.5708
children [
DEF SensorY CylinderSensor{
maxAngle IS maxAngle
minAngle IS minAngle
}
DEF AxisY Transform{
children [
Transform{
rotation 1 0 0 -1.5708
children IS children
}
]
}
]
}
ROUTE SensorY.rotation_changed TO AxisY.set_rotation
}
PROTO CylinderSensorY [
exposedField SFFloat maxAngle -1
exposedField SFFloat minAngle 0
exposedField MFNode children [ ]
]
{
Transform{
rotation 0 1 0 1.5708
children [
DEF SensorX CylinderSensor{
maxAngle IS maxAngle
minAngle IS minAngle
}
DEF AxisX Transform{
children [
Transform{
rotation 0 1 0 -1.5708
children IS children
}
]
}
]
}
ROUTE SensorX.rotation_changed TO AxisX.set_rotation
}
PROTO CylinderSensorX [
exposedField SFFloat maxAngle -1
exposedField SFFloat minAngle 0
exposedField MFNode children [ ]
]
{
Transform{
rotation 0 0 1 -1.5708
children [
DEF SensorZ CylinderSensor{
maxAngle IS maxAngle
minAngle IS minAngle
}
DEF AxisZ Transform{
children [
Transform{
rotation 0 0 1 1.5708
children IS children
}
]
}
]
}
ROUTE SensorZ.rotation_changed TO AxisZ.set_rotation
}
NavigationInfo {
avatarSize 0.5
headlight TRUE
type ["EXAMINE", "ANY"]
}
Background {
skyColor 0.4 0.6 0.4
}
Viewpoint {
position 3 0 0.835
orientation 0.5770 0.5775 0.5775 2.0935
}
DEF floor Humanoid {
humanoidBody [
DEF WAIST Joint {
jointType "fixed"
translation 0.0 0.0 -0.1
rotation 0 0 1 0
children [
DEF BODY Segment {
mass 0.5
momentsOfInertia [1 0 0 0 1 0 0 0 1]
children [
Shape {
geometry Box {
size 4 4 0.2
}
appearance Appearance {
material Material {
diffuseColor 0.0 0.0 1.0
}
}
}
]
}
]
}
]
joints [
USE WAIST
]
segments [
USE BODY
]
version "1.1"
}