Giter Club home page Giter Club logo

Comments (4)

dtotsila avatar dtotsila commented on June 28, 2024

@preist-nvidia did you have time to look into this issue?

from physx.

preist-nvidia avatar preist-nvidia commented on June 28, 2024

Not yet, but it's on my list. And thank you for the excellent repro/bug report.

FYI, we are aware that the spherical articulation joints have several issues/inconsistencies that we are going to address after some higher-priority issues are done. A fix in 5.2.0 is unlikely at this point, however.

from physx.

preist-nvidia avatar preist-nvidia commented on June 28, 2024

@dtotsila - any chance you can try to work around this issue using an identity CmassLocalPose?

from physx.

jcarius-nv avatar jcarius-nv commented on June 28, 2024

Hi @dtotsila
thank you very much for reporting the issue and providing an excellent reproduction case.
I traced the instability down to a problem where the conversion from a quaternion to the angle-axis representation caused a flip of the joint angle by two pi. While visually not visible from the link state, this flip triggered the joint limits, which would then aggressively push the joint angle out of the limit and cause oscillatory motion.

The fix will appear in an upcoming release of PhysX. In the meantime, you can apply the following changes to your local version:

  1. In the function PxQuat computeSphericalJointPositions(...) in file DyFeatherstoneForwardDynamic.cpp and
  2. In the function PxTransform FeatherstoneArticulation::propagateTransform(...) in file DyFeatherstoneArticulation.cpp, add the lines
if(jointRotation.w < 0.0f)
  jointRotation = -jointRotation;

before that quaternion is converted into angle-axis format.

I hope this solves your problem. Please re-open the issue if it still persists after applying the changes.

from physx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.