Main Content

Collision Detection

Collision geometry meshes, collision avoidance and clearance

Collision geometries define the physical space occupied by robots and their environments. To represent robot parts or obstacles in the environment, create collision objects like boxes, cylinders, spheres, or custom meshes. Use checkCollision to determine if different parts of a manipulator arm collide with each other (self-collisions) or with obstacles in the world while executing trajectories. The function also gives obstacle clearance to anticipate and avoid collisions.

Functions

expand all

capsuleApproximationApproximate collision geometries of rigid body tree with capsules (Since R2022b)
checkCollisionCheck if robot is in collision (Since R2020b)
addCollisionAdd collision geometry to rigid body (Since R2020b)
clearCollisionClear all attached collision geometries (Since R2020b)
checkCollisionCheck if two geometries are in collision (Since R2019b)
collisionBoxCreate box collision geometry (Since R2019b)
collisionCapsuleCapsule primitive collision geometry (Since R2022b)
collisionCylinderCreate collision cylinder geometry (Since R2019b)
collisionMeshCreate convex mesh collision geometry (Since R2019b)
collisionSphereCreate sphere collision geometry (Since R2019b)
collisionVHACDDecompose mesh into convex collision meshes using V-HACD (Since R2023b)
showCollisionArrayShow array of collision objects in figure (Since R2023b)