How to set the collision check distance?
How to set the collision check distance?
Function sim.checkCollision can only define the entitles you want to check, but it has no parameters to set the minimal distance between two entitles that should be considered as collision. Is there any way to define the minimal distance that should be considered as collision? Because some times I want to consider the mini scale of collision as no collision.
Re: How to set the collision check distance?
look at sim.checkDistance instead!
Cheers
Cheers
Re: How to set the collision check distance?
Thank you very much for your reply. And is there a way to quantify the degree of interference between two objects? Because here I want to ignore small interferences caused by model inaccuracies.
Re: How to set the collision check distance?
Penetration depth cannot directly be detected. What you can do however is start with a schrunk shape (shrinking a shape is somewhat difficult, you'll probably need a special type of app for that). Normally one would start with the original shape and grow it by x mm:
Cheers
- select the shape
- Navigate to [Menu bar > Modules > Geometry / Mesh > Convex hull...]
- Adjust Growth parameter
- Click Generate
Cheers
Re: How to set the collision check distance?
Thank you for reply, I notice that the minimum distance in pybullet can be negative value when objects are collideing through the function p.getClosestPoints, considering that the bullet is used in the coppeliasim, is there any way to directly get this value?
Re: How to set the collision check distance?
No, you can't. Also, that value would only make sense when you have two convex shapes colliding. If they are not convex the penetration depth could only be approximate.
Cheers
Cheers