Skip to content

Commit

Permalink
Add new Robot status in enum
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUsama-afk-equinor committed Sep 29, 2023
1 parent ef6d1bf commit b3f2088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def _get_combined_robot_status(
return RobotStatus.Available
elif current_state != States.Idle or robot_status == RobotStatus.Busy:
return RobotStatus.Busy
elif current_state != States.Idle or robot_status == RobotStatus.Stuck:
return RobotStatus.Busy
return None

def run(self) -> None:
Expand Down
1 change: 1 addition & 0 deletions src/robot_interface/models/mission/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ class RobotStatus(Enum):
Available: str = "available"
Busy: str = "busy"
Offline: str = "offline"
Stuck: str = "stuck"

0 comments on commit b3f2088

Please sign in to comment.