Isaac Sim Version
X 5.0.0
4.5.0
4.2.0
4.1.0
4.0.0
4.5.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):
Operating System
X Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):
GPU Information
- Model: Ada 4000
Topic Description
I am working on a project where I have mounted a contact sensor on the gripper body of a robotic system. I am trying to segment the gripper and any bodies in contact using the contact sensor interface. After getting the contact sensor raw data using get_contact_sensor_raw_data(…), I can iterate over the raw contact data and extract then contact for “body1” (which I assume is always the antagonistic contact body). This comes in an integer numeric code which can be decoded into its primitive path using decode_body_name(…). I am writing this string to a new USD attribute which I have created and am recording it in real-time using the USD Stage Recorder extension to replay this as an baked animation. This all works fine until I try to segment the primitive contact primitives using the written string where I have noticed that sometimes, not always, the wrong primitive is being detected as in contact.
To debug I have created a function which collects all prims from all contact sensors mounted on my grippers to turn bright neon pink and as you can see from the screenshots the correct gripper primitive is being highlighted however the target object is most of the time the incorrect one. After playing around with it I have noticed that it seems to be some sort of sticking behavior where after interacting with a certain primitive the contact sensor will continue to return that same contact even after moving away from it. The only way to prevent this is by setting a non-zero lower threshold for the sensor, however I still get the problem of when contacting other objects the previous prim path is still returned.
I have included screenshots showing how with a lower threshold contacts are correctly being detected however more often than not it is with the wrong primitive. The only time the contact sensor works correctly is in the beginning of the simulation until, seemingly at random, the contact sensor will stick to a primitive and will continue detecting contact even when touching another object. This behavior is worse still if the threshold is left at zero where the sticking will continue even if the gripper is nowhere near another object as shown in the lower set of screenshots.
I hope this report is descriptive enough and the developers can promptly address this unorthodox behavior.
Screenshots or Videos
Contact sticking behavior with lower threshold 1e-6:
Correct contact
Then sticking (not touching base just peg)
Contact sticking with lower threshold = 0
Correct initial contact
then sticking …







