-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update link / base velocities and accelerations #181
Conversation
- Get both body and world velocity - Update the setters to make explicit that they set the world velocity and acceleration
830b30a
to
70f8712
Compare
world_velocity = (position_new - position_old) / dt | ||
|
||
# Test the world velocity (MIXED) | ||
assert world_velocity == pytest.approx(worldLinearVelocity(), abs=1E-2) |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😨
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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
Referring to Multibody Dynamics Notation, the
World
methods use the mixed velocity representation [Section 5.2] and theBody
methods the left trivialized representation (body fixed frame) [Section 5].Related to gazebosim/gz-sim#87.