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

Fixed initialization of position and velocity #621

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

mkoval
Copy link
Collaborator

@mkoval mkoval commented Feb 23, 2016

The position and velocity of freshly-constructed Joints was being set to zero instead of, respectively,mInitialPosition and mInitialVelocity. These values would only be applied if the user manually calls resetPosition() and resetVelocity().

This pull request modifies the SingleDofJoint and MultiDofJoint constructors to use the correct values for initialization. I believe all other joints (except WeldJoint, which has no DOFs) inherit from these base classes, so we don't need to make any other changes.

@jslee02 jslee02 added this to the DART 6.0.0 milestone Feb 23, 2016
@jslee02
Copy link
Member

jslee02 commented Feb 23, 2016

👍

jslee02 added a commit that referenced this pull request Feb 23, 2016
Fixed initialization of position and velocity
@jslee02 jslee02 merged commit cbe9b09 into dartsim:master Feb 23, 2016
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.

2 participants