-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrbv.moos
252 lines (200 loc) · 5.94 KB
/
rbv.moos
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
//------------------------------------------------
// File: nmi.bhv
// Name: Simos Gerasimou
// Date: 2022
//------------------------------------------------
ServerHost = localhost
ServerPort = 9000
Community = NMI
MOOSTimeWarp = 1
LatOrigin = 43.825300
LongOrigin = -70.330400
//------------------------------------------
// Antler configuration block
ProcessConfig = ANTLER
{
MSBetweenLaunches = 200
Run = MOOSDB @ NewConsole = false
Run = uSimMarine @ NewConsole = false
Run = pNodeReporter @ NewConsole = false
Run = pMarinePID @ NewConsole = false
Run = pMarineViewer @ NewConsole = false
Run = pHelmIvP @ NewConsole = false
Run = pLogger @ NewConsole = false
Run = sUUVNMI @ NewConsole = false
Run = uXMS @ NewConsole = false
Run = uTimerScript @ NewConsole = true
}
//------------------------------------------
// uXMS config block
ProcessConfig = uXMS
{
AppTick = 4
CommsTick = 4
var = STATION_KEEP
var = NEW_CHAIN
// var = IVPHELM_BHV_CNT
// var = IVPHELM_BHV_CNT_EVER
// var = IVPHELM_ALLSTOP
// var = IVPHELM_STATE
var = MOOS_MANUAL_OVERRIDE
var = DEPLOY
var = UUV_NEW_CHAIN
var = NAV_SPEED
var = UUV_NEW_CHAIN_TEST
// var = UUV_SPEED
var = STATION_KEEP
var = CLEAN
var = RETURN
var = CLEANING_UPDATES
var = AUV_STEADY
}
//------------------------------------------
// pMarineViewer config block
ProcessConfig = pMarineViewer
{
AppTick = 4
CommsTick = 4
appcast_viewable = false
//tiff_file = UK.tiff
//tiff_file = AerialSingapore.tif
//tiff_file = forrest19.tif
tiff_file = test.tif
set_pan_x = 100
set_pan_y = 880
zoom = 6
vehicle_shape_scale = 4.0
hash_delta = 50
hash_shade = 0.4
hash_viewable = false
vehicles_name_mode = off
vehicles_name_color = red
trails_length = 50
//view_center = (100,-100)
//marker_viewable_labels = false
scope = POINTS
scope = SURVEY_UPDATES
// scope = LOITER_DIST_TO_POLY
// scope = USM_FSUMMARY
// scope = USM_DRIFT_VECTOR_ADD
// scope = DB_CLIENTS
// scope = CONVEX_GRID_CONFIG
action = UP_LOITER = center_assign = 40,-40
action+ = UP_LOITER = center_assign = x=100, y=-80
action = UP_LOITER = polygon = format=radial, x=0, y=-75, radius=40, pts=6
action+ = UP_LOITER = polygon = format=ellipse, x=110, y=-75, degs=150, pts=14, major=80, minor=20
action = UP_LOITER = center_activate = true
action+ = UP_LOITER = center_activate = false
action = WIND_GUSTS = true
action+ = WIND_GUSTS = false
action = UP_LOITER=clockwise=true
action = UP_LOITER=clockwise=false
button_one = DEPLOY # MOOS_MANUAL_OVERRIDE=false # DEPLOY=true # STATION_KEEP=false # CLEAN=false # RETURN=false
button_two = STATION_KEEP=false # LOITER=true # RETURN=false
button_two = RETURN # RETURN=true # STATION_KEEP=false
button_three = SKEEP:true # STATION_KEEP=true
button_four = SKEEP:false # STATION_KEEP=false
}
//------------------------------------------
// uSimMarine config block
ProcessConfig = uSimMarine
{
AppTick = 10
CommsTick = 10
start_x = 0
start_y = -10
start_speed = 0
start_heading = 180
prefix = NAV
max_deceleration = 0.1
dual_state = true
}
//------------------------------------------
// pHelmIvP config block
ProcessConfig = pHelmIvP
{
AppTick = 4
CommsTick = 4
behaviors = nmi.bhv
verbose = true
domain = course:0:359:360
domain = speed:0:4:21
}
//------------------------------------------
// pNodeReporter config block
ProcessConfig = pNodeReporter
{
AppTick = 2
CommsTick = 2
platform_type = auv
platform_length = 3
alt_nav_prefix = NAV_GT
}
//------------------------------------------
// pMarinePID config block
ProcessConfig = pMarinePID
{
AppTick = 20
CommsTick = 20
verbose = true
depth_control = false
// Yaw PID controller
yaw_pid_kp = 0.5
yaw_pid_kd = 0.0
yaw_pid_ki = 0.0
yaw_pid_integral_limit = 0.07
// Speed PID controller
speed_pid_kp = 1.0
speed_pid_kd = 0.0
speed_pid_ki = 0.0
speed_pid_integral_limit = 0.07
//MAXIMUMS
maxrudder = 100
maxthrust = 100
// Non-zero SPEED_FACTOR overrides SPEED_PID
// DESIRED_THRUST = DESIRED_SPEED * SPEED_FACTOR
speed_factor = 20
}
//------------------------------------------
// pLogger config block
ProcessConfig = pLogger
{
AppTick = 4
CommsTick = 4
LogAuxSrc = true
WildCardLogging = true
WildCardOmitPattern = *_STATUS
WildCardOmitPattern = DB_VARSUMMARY
WildCardOmitPattern = DB_RWSUMMARY
}
//------------------------------------------
// uTimerScript config block
ProcessConfig = uTimerScript
{
// AppTick = 4
// CommsTick = 4
// event = var = SURVEY_UPDATES, val="points = 60,-40:40,-90:60,-140:150,-140:170,-90:150,-40:100,-70", time =10
// event = var = SURVEY_UPDATES2, val="points = 60,-40:40,-90:60,-140:150,-140:170,-90:150,-40:100,-70:100,-90: 75,-125", time =10
event = var = SURVEY_UPDATES, val="points = 60,-40:40,-90:60,-140:150,-140:170,-90:150,-40", time =10
event = var = SURVEY_UPDATES2, val="points = 60,-40:40,-90:60,-140:150,-140:170,-90:150,-40", time =10
event = var = MOOS_MANUAL_OVERRIDE, val=false, time=20
event = var = DEPLOY, val=true, time=20
event = quit, time=220
}
//------------------------------------------
// sUUV config block
ProcessConfig = sUUVNMI
{
max_appcast_events = 50
PORT = 8860
SEED = 15 // (G G G LB G W)
//SEED = 150 // (G G LB G W W)
P_CHAIN_OK = 0.35
P_CLEAN_CHAIN = 0.91
R_CHAIN_INSPECT = 0.03333333333333333
R_CHAIN_TRAVEL = 0.008333333333333333
R_CHAIN_CLEAN = 0.011833166666666667
R_CHAIN_FAIL_CLEAN = 0.01583333333333333
R_DAMAGE = 0.000000166666666667
LOG_FILE = logTest
}