Skip to content

Commit

Permalink
Remove unnecessary arg and update typing for _set_initial_localizatio…
Browse files Browse the repository at this point in the history
…n_fiducial()
  • Loading branch information
sktometometo committed Jul 1, 2023
1 parent 61c4ba4 commit c1a4100
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spot_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ def _get_localization_state(self, *args):
"Got robot state in kinematic odometry frame: \n%s" % str(odom_tform_body)
)

def _set_initial_localization_fiducial(self, *args):
def _set_initial_localization_fiducial(self) -> None:
"""Trigger localization when near a fiducial."""
robot_state = self._robot_state_client.get_robot_state()
current_odom_tform_body = get_odom_tform_body(
Expand Down Expand Up @@ -2508,7 +2508,9 @@ def _cancel_navigate_to(self) -> None:
self._navigate_to_valid = False

@try_claim
def _start_navigate_to(self, target_waypoint_id: str) -> typing.Tuple[bool, str, str]:
def _start_navigate_to(
self, target_waypoint_id: str
) -> typing.Tuple[bool, str, str]:
self._lease = self._lease_wallet.get_lease()
destination_waypoint = graph_nav_util.find_unique_waypoint_id(
target_waypoint_id,
Expand Down

0 comments on commit c1a4100

Please sign in to comment.