Skip to content

Commit

Permalink
Check for Obstacle status report
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUsama-afk-equinor committed Oct 31, 2023
1 parent 785ee35 commit c8bbca7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/isar_robot/robotinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ def _get_pressure_telemetry(self, isar_id: str, robot_name: str) -> str:
return json.dumps(pressure_payload, cls=EnhancedJSONEncoder)

def robot_status(self) -> RobotStatus:
if self._update_obstacle_status():
obstacle_status = self._update_obstacle_status()
if obstacle_status:
print(self.obstacle_status)
return RobotStatus.Stuck
else:
return RobotStatus.Available
Expand Down

0 comments on commit c8bbca7

Please sign in to comment.