Hi, I am importing my own URDF (mobile manipulator). But when I enable the self-collision option, my robot will lose control. Because of that, I didn’t check that option, causing its arm can “go through” the robot’s body.
I wonder if we have an API to check this kind of collision in Python?
Hi,
You can run the overlap_shape function to detect the collision.
Please open Window->Simulation->Physics->Demos and run the OverlapShape demo. If you open the script file you can see the usage:
Oh. I found it! Thank you so much.
And, I tried it, and it is working.
However, I have one more question:
Would it be possible if I can treat multiple meshes as a shape?
In the program, the API seems only can handle one mesh.
For example (see Figure below), I want to check collision for the whole robot body EXPECT the gripper. Is that possible?