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

Update link / base velocities and accelerations #181

Conversation

diegoferigo
Copy link
Collaborator

@diegoferigo diegoferigo commented Apr 26, 2020

  • Fix a copy-and-paste bug ea0d34f
  • Improve the base link APIs clarifying the velocity representation e7b9b1e
  • Get the body base velocity e7b9b1e
  • Add new test that check the link and base APIs for velocity and accelerations against numerically differentiated values 830b30a

Referring to Multibody Dynamics Notation, the World methods use the mixed velocity representation [Section 5.2] and the Body methods the left trivialized representation (body fixed frame) [Section 5].

Related to gazebosim/gz-sim#87.

@diegoferigo diegoferigo force-pushed the refactor/velocity_and_acceleration branch from 830b30a to 70f8712 Compare April 26, 2020 22:19
world_velocity = (position_new - position_old) / dt

# Test the world velocity (MIXED)
assert world_velocity == pytest.approx(worldLinearVelocity(), abs=1E-2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1E-2 is quite high, what are the velocity values ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The z component of this velocity reaches ~4, x and y are much smaller, less than 1.0.


# By time to time there are steps where the acceleration becomes extremely high,
# like 1000 m/s/s when the average is never exceeds 4 m/s/s.
# We exclude those points. We should understand why this happens.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😨

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what's happening there 🤔

Copy link
Collaborator Author

@diegoferigo diegoferigo Apr 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are only few cases in 0.5 sec * 10kHz = 5k runs

@diegoferigo diegoferigo merged commit 3f3f4c2 into robotology-legacy:refactoring Apr 28, 2020
@diegoferigo diegoferigo deleted the refactor/velocity_and_acceleration branch April 28, 2020 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants