Skip to content

Commit

Permalink
added stop command into disconnect function
Browse files Browse the repository at this point in the history
  • Loading branch information
tcappellari-bdai committed Mar 11, 2024
1 parent 9cbdbce commit bcb65be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spot_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,7 @@ def release(self) -> typing.Tuple[bool, str]:

def disconnect(self) -> None:
"""Release control of robot as gracefully as posssible."""
self.stop()
if self._robot.time_sync:
self._robot.time_sync.stop()
self.releaseLease()
Expand Down

0 comments on commit bcb65be

Please sign in to comment.