Skip to content

Commit

Permalink
Add lease to graph_nav (#141)
Browse files Browse the repository at this point in the history
* Add lease to graph_nav

* fixed lint error from pre-commit

---------

Co-authored-by: Dan Rosenstein <danrose_microsoft>
  • Loading branch information
IoTDan authored Sep 26, 2024
1 parent 2eec3ab commit c7b1696
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spot_wrapper/spot_graph_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ def set_initial_localization_waypoint(self, *args):
self._logger.error("Failed to find waypoint id.")
return

self._lease = self._get_lease()
self._lease_keepalive = LeaseKeepAlive(self._lease_client)

robot_state = self._robot_state_client.get_robot_state()
current_odom_tform_body = get_odom_tform_body(robot_state.kinematic_state.transforms_snapshot).to_proto()
# Create an initial localization to the specified waypoint as the identity.
Expand Down

0 comments on commit c7b1696

Please sign in to comment.