feat: add two-floor elevator simulation
This commit is contained in:
8
srv/CallElevator.srv
Normal file
8
srv/CallElevator.srv
Normal file
@@ -0,0 +1,8 @@
|
||||
string elevator_id
|
||||
string pickup_floor
|
||||
string direction
|
||||
string request_id
|
||||
---
|
||||
bool accepted
|
||||
string car_id
|
||||
string message
|
||||
14
srv/DoorCommand.srv
Normal file
14
srv/DoorCommand.srv
Normal file
@@ -0,0 +1,14 @@
|
||||
uint8 OPEN=0
|
||||
uint8 CLOSE=1
|
||||
uint8 HOLD_OPEN=2
|
||||
uint8 RELEASE_HOLD=3
|
||||
|
||||
string elevator_id
|
||||
string car_id
|
||||
uint8 command
|
||||
float32 lease_seconds
|
||||
string request_id
|
||||
---
|
||||
bool accepted
|
||||
uint8 door_state
|
||||
string message
|
||||
4
srv/EmergencyStop.srv
Normal file
4
srv/EmergencyStop.srv
Normal file
@@ -0,0 +1,4 @@
|
||||
string reason
|
||||
---
|
||||
bool accepted
|
||||
string message
|
||||
5
srv/InjectFault.srv
Normal file
5
srv/InjectFault.srv
Normal file
@@ -0,0 +1,5 @@
|
||||
string fault_code
|
||||
bool active
|
||||
---
|
||||
bool accepted
|
||||
string message
|
||||
11
srv/ReserveElevator.srv
Normal file
11
srv/ReserveElevator.srv
Normal file
@@ -0,0 +1,11 @@
|
||||
string elevator_id
|
||||
string car_id
|
||||
string owner_id
|
||||
bool reserve
|
||||
float32 lease_seconds
|
||||
string request_id
|
||||
---
|
||||
bool accepted
|
||||
string reserved_by
|
||||
float32 lease_remaining
|
||||
string message
|
||||
3
srv/ResetElevator.srv
Normal file
3
srv/ResetElevator.srv
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
bool accepted
|
||||
string message
|
||||
7
srv/SelectFloor.srv
Normal file
7
srv/SelectFloor.srv
Normal file
@@ -0,0 +1,7 @@
|
||||
string elevator_id
|
||||
string car_id
|
||||
string floor_id
|
||||
string request_id
|
||||
---
|
||||
bool accepted
|
||||
string message
|
||||
5
srv/SwitchFloorMap.srv
Normal file
5
srv/SwitchFloorMap.srv
Normal file
@@ -0,0 +1,5 @@
|
||||
string floor_id
|
||||
---
|
||||
bool accepted
|
||||
string active_floor
|
||||
string message
|
||||
Reference in New Issue
Block a user