Slow Collision Computation #791
Replies: 2 comments 1 reply
-
|
Some more information to reproduce the issue, attached a minimal example python script. From the example (and output) it becomes clear that the collision computation is much slower with an Files: |
Beta Was this translation helpful? Give feedback.
-
|
#751 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For motion planning in robotics I'm using pinocchio with coal.
In some scenarios, the algorithm requires the distance (not just the collision check) to make more informed decision where to move. The distance computation is much slower than just collision computation (~ 100x) which is expected.
Since I only require the distance when being close to collision, I now want to accelerate the computation by first checking if two bodies are within range by setting
collision_data.collisionRequests[it].security_margin = XXX, and then checking for collision. Only they collide with margin, I will proceed to compute the collision.However, what I notice now is that this collision check which used to take ~1ms, becomes very slow for certain objects pairs >1s, when setting relatively high
security_margin=0.5.Looking at the meshes shows that the collision model has many of BVs: approximately 4 BVs per vertex.
First object:
Second object:
Both input objects are triangle meshes. I use the python binding for faster prototyping, but since it's a single function call this should have a negligible on the computation time.
Is this large increase in computational time expected? And is there a specific way of constructing the BV-objects that can improve the computational speed?
And lastly, is there a better option to speed up distance-computation, if I only need the exact distance if it is below a certain margin?
Thanks for any input!
Beta Was this translation helpful? Give feedback.
All reactions