Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamixel trajectories #113

Merged
merged 7 commits into from
Oct 6, 2021
Merged

Dynamixel trajectories #113

merged 7 commits into from
Oct 6, 2021

Conversation

hello-binit
Copy link
Contributor

@hello-binit hello-binit commented Oct 5, 2021

This PR makes the trajectory interface available for the Dynamixel motors.

  • follow_trajectory(): initiates execution of a waypoint trajectory
  • update_trajectory(): used to update the hardware with the next segment of the waypoint trajectory (rarely used by users)
  • stop_trajectory(): used to stop execution of a waypoint trajectory

This PR includes unit tests of the new methods, and a small example program is reproduced here:

import stretch_body.stretch_gripper

g = stretch_body.stretch_gripper.StretchGripper()
g.startup()

g.trajectory.add(0, 0)
g.trajectory.add(3, 50)
g.trajectory.add(6, 0)
g.follow_trajectory()
time.sleep(6)

g.trajectory.clear()
g.stop()

@hello-binit hello-binit force-pushed the feature/lift_arm_trajectories branch 2 times, most recently from b26053c to 3bf39ab Compare October 6, 2021 06:05
@hello-binit hello-binit marked this pull request as ready for review October 6, 2021 10:29
Base automatically changed from feature/lift_arm_trajectories to develop October 6, 2021 15:01
@hello-binit hello-binit merged commit 3c68b09 into develop Oct 6, 2021
@hello-binit hello-binit deleted the feature/dxl_trajectories branch October 6, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant