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

Copy of dartsim PR #1437 #5

Merged
merged 3 commits into from
Apr 3, 2020

Conversation

azeey
Copy link
Collaborator

@azeey azeey commented Apr 2, 2020

Copied from dartsim#1437

This resolves issue dartsim#1433 and possibly the other issues mentioned in there. The two changes made in this PR are:

  1. When integrating a FreeJoint's velocity, an additional term is added to account for changing linear velocity in the inertial frame.

  2. The joint velocities of FreeJoint are in se3 and since they are expressed in the body frame, they have to be updated after the joint's positions (SE3) are updated. The same is true for accelerations after velocities are integrated.

This PR breaks a test in test_Dynamics.cpp because integration of the joint positions of FreeJoint updates joint velocities unlike other joint types. I left this as WIP to get some feedback on what to do about this test failure.

From the comments in the upstream PR, this might be a temporary solution and a more permanent solution is in the works. In the meantime, since it fixes a crash in ign-gazebo, it would be nice to get it merged into our local fork

azeey added 3 commits April 2, 2020 10:28
The main fix is in the expression used to integrate velocities. The
secondary fix is to update spatial accelerations after
integrating velocities and to update both spatial velocities and
accelerations after integrating positions.
@azeey
Copy link
Collaborator Author

azeey commented Apr 2, 2020

/cc @scpeters

@azeey
Copy link
Collaborator Author

azeey commented Apr 2, 2020

Should we change the version number?

@scpeters
Copy link
Collaborator

scpeters commented Apr 3, 2020

I think @j-rivero can update the number when building a debian

@azeey azeey merged commit 711dde3 into azeey/friction_per_shape_more_params Apr 3, 2020
@azeey azeey mentioned this pull request Aug 20, 2020
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