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

Add joint motors #119

Merged
merged 20 commits into from
Feb 22, 2021
Merged

Add joint motors #119

merged 20 commits into from
Feb 22, 2021

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented Feb 22, 2021

This adds motors to the prismatic, revolute, and ball joints. The motor acts as a spring-like constraint, configurable as described in #87. As such, it is possible to give the motor a target velocity as well as a target position.

Multiple spring-like equations (velocity-based, acceleration-based, or force-based) can be chosen by the user in a per-joint basis.

The joint3 demo has been updated to add motorized joint examples.

This PR also includes some preliminary work on a generic 6DoF joint as suggest in #87. However it's not implemented in a very satisfying way yet so its sources are commented out right now.

Fix #87

@sebcrozet sebcrozet added C-Enhancement New feature or request 2D The issue is specifically about the 2D version of Rapier. 3D The issue is specifically about the 3D version of Rapier. labels Feb 22, 2021
@sebcrozet sebcrozet merged commit d31a327 into master Feb 22, 2021
@sebcrozet sebcrozet deleted the joint_drive branch February 22, 2021 16:40
@extrawurst
Copy link
Contributor

this is so cool! can't wait to put my hands on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2D The issue is specifically about the 2D version of Rapier. 3D The issue is specifically about the 3D version of Rapier. C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: joint drives
2 participants