Skip to content

Commit

Permalink
Add stop_trajectory to dynamixels
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-binit committed Oct 5, 2021
1 parent 786536b commit 5938549
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions body/stretch_body/dynamixel_hello_XL430.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,11 @@ def update_trajectory(self):
self.move_to(self.trajectory[-1].position, self._waypoint_vel, self._waypoint_accel)
self._waypoint_ts, self._waypoint_vel, self._waypoint_accel = None, None, None

def stop_trajectory(self):
"""Stop waypoint trajectory immediately and resets hardware
"""
self._waypoint_ts, self._waypoint_vel, self._waypoint_accel = None, None, None

# ##########################################
"""
Servo calibration works by:
Expand Down

0 comments on commit 5938549

Please sign in to comment.