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

bullet-featherstone: Non-base links return zero velocities #617

Open
iche033 opened this issue Apr 5, 2024 · 0 comments
Open

bullet-featherstone: Non-base links return zero velocities #617

iche033 opened this issue Apr 5, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@iche033
Copy link
Contributor

iche033 commented Apr 5, 2024

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build?
    source build, gz-physics7 and main branches

Description

  • Expected behavior: A moving non-base link should return correct linear and angular velocity values.
  • Actual behavior: Zero velocities are returned

In the bullet-featherstone plugin, non-base links currently returns zero linear and angular linear velocities. The relevant code for generating velocities for non-base links are located here:

data.linearVelocity = convert(link.m_absFrameTotVelocity.getLinear());
data.angularVelocity = convert(link.m_absFrameTotVelocity.getAngular());

A closer look at the bullet source code reveals that the btMultiBodyLink's m_absFrameTotVelocity variables are never filled unless btMultiBody::useGlobalVelcoties() is called and set to true

@iche033 iche033 added the bug Something isn't working label Apr 5, 2024
@azeey azeey added the help wanted Extra attention is needed label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: To do
Development

No branches or pull requests

2 participants