feat: add two-floor elevator simulation

This commit is contained in:
2026-10-31 10:35:11 +07:00
commit 6e82c6b35c
181 changed files with 86892 additions and 0 deletions

8
srv/CallElevator.srv Normal file
View 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
View 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
View File

@@ -0,0 +1,4 @@
string reason
---
bool accepted
string message

5
srv/InjectFault.srv Normal file
View File

@@ -0,0 +1,5 @@
string fault_code
bool active
---
bool accepted
string message

11
srv/ReserveElevator.srv Normal file
View 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
View File

@@ -0,0 +1,3 @@
---
bool accepted
string message

7
srv/SelectFloor.srv Normal file
View 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
View File

@@ -0,0 +1,5 @@
string floor_id
---
bool accepted
string active_floor
string message