Open iche033 opened 3 months ago
gz-physics7
main
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: https://github.com/gazebosim/gz-physics/blob/2bc19ad0d7ca34f2150c765e8cce5d712ba117bd/bullet-featherstone/src/KinematicsFeatures.cc#L43-L44
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
btMultiBodyLink
m_absFrameTotVelocity
btMultiBody::useGlobalVelcoties()
true
Environment
gz-physics7
andmain
branchesDescription
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: https://github.com/gazebosim/gz-physics/blob/2bc19ad0d7ca34f2150c765e8cce5d712ba117bd/bullet-featherstone/src/KinematicsFeatures.cc#L43-L44
A closer look at the bullet source code reveals that the
btMultiBodyLink
'sm_absFrameTotVelocity
variables are never filled unlessbtMultiBody::useGlobalVelcoties()
is called and set totrue