Skip to content

Commit

Permalink
Fix type hint of start_navigation()
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Jun 29, 2023
1 parent e18dd9b commit 4bd3616
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spot_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,14 +1690,17 @@ def set_localization_waypoint(self, waypoint_id: str) -> typing.Tuple[bool, str]
resp = self._set_initial_localization_waypoint(waypoint_id)
return resp[0], resp[1]
except Exception as e:
return False, f"Got an error while localizing the robot to the waypoint {waypoint_id}: {e}"
return (
False,
f"Got an error while localizing the robot to the waypoint {waypoint_id}: {e}",
)

def cancel_navigation(self) -> None:
"""Cancel navigation of a robot from start_navigation()"""
self._cancel_navigate_to()

@try_claim
def start_navigation(self, target_waypoint_id: str) -> tuple(bool, str, str):
def start_navigation(self, target_waypoint_id: str) -> typing.Tuple[bool, str, str]:
"""Navigate a robot to specified waypoint id with GraphNav
Args:
Expand Down

0 comments on commit 4bd3616

Please sign in to comment.