-
Notifications
You must be signed in to change notification settings - Fork 276
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
INTEGRATION_physics_system fails locally #5
Comments
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). Do you know what version/branch if ign-physics you are using? |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). Can you try the |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). I did notice during this PR that the bullet collision detector is giving suspiciously large distance between objects that are lying on each other. Qualitatively, I didn't notice any visually obvious issue when running this or this, but maybe an offset of 0.03 is too small to be noticed in those examples? I can put aside some time to investigate why the precision seems off on these tests. |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). Thanks Grey, that would be great. |
Original comment by Addisu Z. Taddese (Bitbucket: azeey, GitHub: azeey). I can see the same behavior running gazebo with dart and using the bullet collision detector (you'll need https://bitbucket.org/osrf/gazebo/pull-requests/2956 to test this). The behavior doesn't seem to affect some geometries like Gazebo-Dart with bullet collisionGazebo-bullet |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). I've identified the cause of the issue: Bullet collision detector starts to report "collision points" before the objects are actually in collision, and it reports their penetration depth as being negative (or their distance as being positive, depending on which convention you prefer). I believe dartsim assumes that all contact points reported by the collision detector are occurring at true intersections of the collision bodies, so these pseudo-collisions are being treated as real collisions, causing the bodies to stop early. The Bullet physics engine itself is presumably aware of this behavior, and probably utilizes it to get smoother collisions. An ideal solution for dartsim would be to use this information in whatever way that Bullet physics uses it to improve collision handling, but a brute force solution would be to just throw away contact points that report negative penetration depth. |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). The changes in this dartsim PR should fix the issue. |
Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
The test always fails for me, but it passes on pipelines.
The tolerance already seems pretty high, should we increase it further or is there anything else that can be tried to improve precision? I tried stepping more to see if it would settle better, but had no success.
The text was updated successfully, but these errors were encountered: