Skip to content

Commit

Permalink
Switch robot status when its stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUsama-afk-equinor committed Oct 24, 2023
1 parent 24c81de commit a284f6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/isar_robot/robotinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ def _get_pressure_telemetry(self, isar_id: str, robot_name: str) -> str:
def robot_status(self) -> RobotStatus:
obstacle_status = self._update_obstacle_status()
if obstacle_status:
print(self.obstacle_status)
return RobotStatus.Stuck
else:
return RobotStatus.Available
Expand Down Expand Up @@ -334,5 +333,5 @@ def _update_pressure_level(self) -> float:
return self.pressure_level

def _update_obstacle_status(self) -> bool:
self.obstacle_status = True
self.obstacle_status = False
return self.obstacle_status

0 comments on commit a284f6f

Please sign in to comment.