Skip to content

Commit

Permalink
better error message when failing to execute command
Browse files Browse the repository at this point in the history
  • Loading branch information
tcappellari-bdai committed Mar 21, 2024
1 parent bcb65be commit d550ad4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spot_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ 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 Expand Up @@ -1035,7 +1034,7 @@ def _robot_command(
)
return True, "Success", command_id
except Exception as e:
self._logger.error(f"Unable to execute robot command: {e}")
self._logger.error(f"Unable to execute robot command: {e} \n {str(command_proto)}")
return False, str(e), None

def _manipulation_request(self, request_proto, end_time_secs=None, timesync_endpoint=None):
Expand Down

0 comments on commit d550ad4

Please sign in to comment.