Skip to content

[Bug Report] Acceleration and Linear velocities of Physx off for small masses and with contact solver #819

Closed

Description

@pascal-roth

Describe the bug

The measured accelerations and velocities given by the Physx RigidBodyAPI do not seem reasonable in two cases:

  • when a rigid body with a small mass is used.
  • when a sphere is kept at a constant velocity (set every physx step)

The error occurred during the development of the IMU sensor #619

Steps to reproduce

Added a test with a RigidBodyView on a robot's base and the imu_link and did the hand computation of the respective transformation. To reproduce run the test test_offset_calculation here .

Added a test with a cube and sphere on a GroundPlane which sets their velocities at every time step. While the cube velocities and accelerations stay approximately constant, the accelerations of the cube first decrease and then start to increase again. To reproduce run the test test_constant_velocity here.

System Info

  • Commit: 1b8e2c0
  • Isaac Sim Version: 4.1.0-rc.7+4.1.14801.71533b68.gl
  • OS: Ubuntu 20.04
  • GPU: RTX 4090
  • CUDA: 12.2
  • GPU Driver: 535.183.01

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

  • Expected behavior in the test is achieved

Activity

  1. added
    bug
    isaac-sim
    on Aug 13, 2024
  2. self-assigned this
    on Aug 13, 2024
  3. linked a pull request that will close this issueAdds `IMU` sensor #619on Aug 13, 2024
  4. pascal-roth commented on Aug 13, 2024

    @pascal-roth
    CollaboratorAuthor

    @Mayankm96 for viz

  5. Mayankm96 commented on Aug 13, 2024

    @Mayankm96
    Contributor

    @Dhoeller19, this is currently blocking the IMU MR. @preist-nvidia, any advice here?

  6. preist-nvidia commented on Aug 15, 2024

    @preist-nvidia
    Contributor

    Pierre will have a look and let you know.

  7. preist-nvidia commented on Aug 30, 2024

    @preist-nvidia
    Contributor

    @pascal-roth - we found a bug with the acceleration compute in PhysX when the velocity setters are used on CPU and GPU. Internally we finite difference the velocities over the time step for rigid bodies and the pre-sim velocity buffer was not updated when using the getters, so the values were incorrect for the first step after the set.

    The fix will make it into the next Isaac update.

    The small mass case for which @Mayankm96 helped with a repro we are still investigating.

  8. pascal-roth commented on Aug 30, 2024

    @pascal-roth
    CollaboratorAuthor

    @preist-nvidia thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugisaac-sim

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions