-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwarehouse.sd
More file actions
73 lines (64 loc) · 1.76 KB
/
Copy pathwarehouse.sd
File metadata and controls
73 lines (64 loc) · 1.76 KB
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
// Mission continuity showcase — warehouse inventory scan with checkpoint resume
//
// spanda continuity examples/showcase/continuity/warehouse.sd \
// --failed ScannerAlpha --progress 72 --trigger robot_failed
// spanda succession examples/showcase/continuity/warehouse.sd \
// --failed ScannerAlpha --scope fleet
hardware RoverV1 {
sensors [GPS, Camera, Lidar];
actuators [DifferentialDrive];
connectivity [WiFi];
}
mission_plan WarehouseInventoryScan {
step navigate_to_aisle;
step scan_shelf_a;
step scan_shelf_b;
step scan_shelf_c;
step return_to_dock;
constraint battery.level >= 20%;
}
fleet WarehouseFleet {
ScannerAlpha;
ScannerBeta;
ScannerGamma;
}
recovery_policy ContinuityRecovery {
on robot.failed {
reassign mission;
promote backup coordinator;
}
}
continuity_policy WarehouseContinuity {
on robot.failed {
resume from checkpoint;
reassign mission;
}
}
operating_mode NormalMode { normal; }
operating_mode DegradedMode { degraded; }
operating_mode SafeMode { safe; }
operating_mode RecoveryMode { recovery; }
robot ScannerAlpha {
sensor gps: GPS;
sensor camera: Camera;
sensor lidar: Lidar;
actuator wheels: DifferentialDrive;
safety { max_speed = 1.0 m/s; }
behavior scan() { wheels.drive(0.3 m/s); }
}
robot ScannerBeta {
sensor gps: GPS;
sensor camera: Camera;
sensor lidar: Lidar;
actuator wheels: DifferentialDrive;
safety { max_speed = 1.0 m/s; }
behavior scan() { wheels.drive(0.3 m/s); }
}
robot ScannerGamma {
sensor gps: GPS;
sensor camera: Camera;
sensor lidar: Lidar;
actuator wheels: DifferentialDrive;
safety { max_speed = 1.0 m/s; }
behavior scan() { wheels.drive(0.3 m/s); }
}