forked from rtv/Stage
/
fasr_slave.world
195 lines (166 loc) · 5.22 KB
/
fasr_slave.world
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
# FASR demo world
# Authors: Richard Vaughan
# $Id: fasr.world,v 1.4 2008-04-01 23:57:41 rtv Exp $
include "pioneer.inc"
include "map.inc"
include "sick.inc"
interval_sim 100 # simulation timestep in milliseconds
interval_real 0 # real-time interval between simulation updates in milliseconds
paused 0
resolution 0.02
# threads may speed things up here depending on available CPU cores & workload
threadpool 0
# threadpool 16
# configure the GUI window
window
(
size [ 788.000 842.000 ]
center [ -0.354 -0.807 ]
rotate [ 0 0 ]
scale 38.889
pcam_loc [ 0 -4.000 2.000 ]
pcam_angle [ 70.000 0 ]
pcam_on 0
show_data 1
show_flags 1
interval 50
)
# load an environment bitmap
floorplan
(
name "cave"
size [16.000 16.000 0.600]
pose [0 0 0 0]
bitmap "bitmaps/cave.png"
)
zone
(
color "green"
pose [ -7.000 -7.000 0 0 ]
name "source"
ctrl "source"
)
zone
(
color "red"
pose [ 7.000 7.000 0 0 ]
name "sink"
ctrl "sink"
)
define charging_bump model
(
pose [0.240 0 -0.100 0 ]
size [0.120 0.050 0.100]
take_watts 1000.0
color "orange"
obstacle_return 0
)
define autorob pioneer2dx
(
sicklaser( samples 16 range_max 5 laser_return 2 watts 30 )
ctrl "fasr"
joules 100000
joules_capacity 400000
fiducial_return 0
# charging_bump( fiducial( range 3 pose [ 0 0 -0.100 0 ] ) )
gripper( pose [0.250 0 -0.220 0]
take_watts 1000.0
fiducial( range 3 )
# paddles [ "closed" "up" ]
obstacle_return 0 # cheating for simplicity
# autosnatch 1
)
)
define charge_station model
(
size [ 0.100 0.300 0.100 ]
color "purple"
# side blocks to restrict view angle
model( color "purple" size [0.100 0.050 0.250] pose [ 0 0.100 0 0 ] )
model( color "purple" size [0.100 0.050 0.250] pose [ 0 -0.100 0 0 ] )
# the charging block
model(
pose [ 0.010 0 0 0 ]
color "yellow"
size [ 0.050 0.200 0.100 ]
joules -1 # provides infinite energy
give_watts 1000
fiducial_return 2 # look for this in the fiducial sensor
)
)
charge_station( pose [ 7.803 -1.332 0 34.377 ] )
charge_station( pose [ 7.940 -2.349 0 0 ] )
charge_station( pose [ 7.931 -3.367 0 0 ] )
charge_station( pose [ 7.931 -4.444 0 0 ] )
define puck model (
size [0.120 0.120 0.100]
color "violet"
gripper_return 1
obstacle_return 0
)
#puck( pose [ 1.175 2.283 0 0 ] )
#puck( pose [ 0.875 3.139 0 0 ] )
#puck( pose [ 1.043 2.825 0 0 ] )
#puck( pose [ 1.349 2.734 0 0 ] )
#puck( pose [ 2.625 3.068 0 0 ] )
#puck( pose [ 0.447 2.689 0 0 ] )
#puck( pose [ 0.143 3.308 0 0 ] )
#puck( pose [ 0.334 3.441 0 0 ] )
#puck( pose [ 1.439 3.218 0 0 ] )
#puck( pose [ 0.747 2.741 0 0 ] )
#puck( pose [ 0.955 2.086 0 0 ] )
#puck( pose [ 1.781 2.593 0 0 ] )
#puck( pose [ 1.068 2.476 0 0 ] )
#puck( pose [ 0.488 3.190 0 0 ] )
#puck( pose [ 1.708 3.198 0 0 ] )
#puck( pose [ 1.440 2.416 0 0 ] )
#puck( pose [ 1.140 3.045 0 0 ] )
#puck( pose [ 0.682 2.969 0 0 ] )
#puck( pose [ 2.205 3.268 0 0 ] )
#puck( pose [ 1.990 2.312 0 0 ] )
#puck( pose [ 0.646 3.486 0 0 ] )
#puck( pose [ 1.670 2.907 0 0 ] )
#puck( pose [ 2.091 2.830 0 0 ] )
#puck( pose [ -0.103 2.564 0 0 ] )
#puck( pose [ 1.950 3.462 0 0 ] )
#puck( pose [ 2.668 2.674 0 0 ] )
#puck( pose [ 0.549 2.367 0 0 ] )
#puck( pose [ 0.162 2.983 0 0 ] )
#puck( pose [ 1.067 3.367 0 0 ] )
#puck( pose [ 1.412 3.604 0 0 ] )
#autorob( pose [5.418 7.478 0 -163.478] joules 300000 )
#autorob( pose [7.574 6.269 0 -111.715] joules 100000 )
#autorob( pose [5.615 6.185 0 107.666] joules 200000 )
#autorob( pose [7.028 6.502 0 -128.279] joules 400000 )
#autorob( pose [5.750 4.137 0 -97.047] joules 100000 )
#autorob( pose [4.909 6.097 0 -44.366] joules 200000 )
#autorob( pose [6.898 4.775 0 -117.576] joules 300000 )
#autorob( pose [7.394 5.595 0 129.497] joules 400000 )
#autorob( pose [6.468 6.708 0 170.743] joules 100000 )
#autorob( pose [6.451 4.189 0 -61.453] joules 200000 )
#autorob( pose [5.060 6.868 0 -61.295] joules 300000 )
#autorob( pose [4.161 5.544 0 -147.713] joules 400000 )
#autorob( pose [4.911 4.552 0 -125.236] joules 100000 )
#autorob( pose [3.985 6.474 0 -158.025] joules 200000 )
#autorob( pose [5.440 5.317 0 -26.545] joules 300000 )
#autorob( pose [6.362 5.632 0 163.239] joules 400000 )
#autorob( pose [7.559 4.764 0 -139.066] )
#autorob( pose [5.471 7.446 0 77.301] )
#autorob( pose [7.122 4.175 0 -31.440] )
#autorob( pose [5.944 6.951 0 2.937] )
autorob( name "rob00" pose [-4.954 -5.324 0 -103.060] )
autorob( name "rob01" pose [-5.770 -4.443 0 -103.060] )
autorob( name "rob02" pose [-2.217 -5.496 0 -103.060] )
autorob( name "rob03" pose [-3.928 -4.145 0 53.540] )
autorob( name "rob04" pose [-3.133 -1.518 0 2.937] )
autorob( name "rob05" pose [-2.441 -1.444 0 34.450] )
autorob( name "rob06" pose [-6.560 -2.472 0 134.717] )
autorob( name "rob07" pose [-3.602 -6.799 0 -103.060] )
autorob( name "rob08" pose [-2.968 -5.334 0 -103.060] )
autorob( name "rob09" pose [-4.673 -4.005 0 -103.060] )
autorob( name "rob10" pose [-0.073 -5.913 0 -103.060] )
autorob( name "rob11" pose [-1.027 -5.520 0 -103.060] )
autorob( name "rob12" pose [-6.441 -5.071 0 -103.060] )
autorob( name "rob13" pose [0.039 -7.091 0 -103.060] )
autorob( name "rob14" pose [-4.842 -6.586 0 -103.060] )
autorob( name "rob15" pose [-2.878 -3.080 0 -103.060] )