Kinetica Collision Check
Robot pose + obstacles → collisions, minimum clearance and self-collision between links.
How it works
Checks a robot configuration against box, sphere, capsule and cylinder obstacles and against itself. Robot links are modelled as capsules and boxes; the tool reports every pair closer than the safety margin, the minimum clearance and the closest pair, using exact segment–segment distances and an exact convex search for capsule–box distances.
- Robot links are capsules (segment + radius) and oriented boxes attached to the link frames; library robots generate capsules along the kinematic skeleton, URDF boxes/cylinders/spheres are imported (cylinders become capsules with caps ending at the cylinder faces; flat discs become an equal-area square prism).
- Capsule–capsule: closest points between two segments minus both radii. Capsule–box: the signed distance from the segment to the box (outside distance, or minus the depth below the nearest face once the centre line is inside) is convex in the segment parameter, so a golden-section search finds the minimum; the radius is subtracted. Negative clearances are therefore real penetration depths. Box–box: separating-axis test (penetration = smallest projection overlap), else the minimum of the 24 edge-to-box distances.
- Self-collision skips adjacent links, user-listed pairs and pairs that already touch in the robot’s home pose (as in MoveIt’s allowed-collision matrix); the static base link is not checked against the environment.
- A pair counts as a contact when its clearance is below the safety margin.
- Cylinder obstacles (start point, end point, radius) use the same capsule envelope as URDF cylinders: the caps end at the cylinder faces, so near the rim edges the real cylinder can be up to 0.41·r closer than reported — keep the safety margin at least that large next to wide cylinders.
Kinematic simulation for planning and teaching. It is not a certified safety function: verify every program on the real controller with reduced speed and the cell safety system active. Geometry is a simplified envelope of the real robot.
Sources
- Real-Time Collision Detection (closest points between segments, OBB tests) (C. Ericson — Morgan Kaufmann 2005)
Part of Kinetica
-
Kinetica Robot motion studio
Simulate robot arms: kinematics, trajectories, collisions, program export.
Related tools
- Kinetica Trajectory Planner – Waypoints (PTP, LIN, CIRC) + limits → timed joint samples, cycle time and peak velocities.
- Kinetica Forward Kinematics – DH table or URDF + joint values → TCP pose, every joint frame, Jacobian and manipulability.
How to use Kinetica Collision Check
Check a robot pose against boxes, spheres, capsules and cylinders in its cell and against itself, with minimum clearance, the closest pair and a safety margin.
What it is for
Before you teach a point near a fixture or a machine door, you want to know whether the arm hits anything, and how much room is left. This tool takes a robot (library, DH table, URDF or Kinetica JSON), a pose and a list of obstacles: boxes, spheres, capsules and cylinders (columns, fence posts, pipes). It reports every pair closer than your safety margin, the minimum clearance and which pair it belongs to. It can also check the robot against itself, for example the wrist folding back into the upper arm.
The robot is modelled as capsules (a line segment with a radius) and boxes around its links, a simplified envelope of the real arm. Grippers, cables and dress packs aren't included unless you model them. It checks one pose. The Kinetica app checks a whole path and highlights collisions on the timeline. It's a planning aid, not a certified safety function.
Worked example
Arm above a table, clear. KX6-1400 at [0, 0, 0, 0, 90, 0], one box "Table" centred at (900, 0, 350) mm, size 700 × 900 × 700 (top surface at z = 700), margin 10 mm:
No collision; minimum clearance 328.656 mm (link2 ↔ Table).
Raising the margin to 50 mm changes nothing. There's plenty of room.
Reaching down. The same robot at [0, 10, 10, 0, 70, 0] over the same table: still clear, but only 101.166 mm between link6 and the table. Swap the table for a machine box whose top is at z = 800 and the clearance drops to exactly 1.166 mm, 100 mm less, as expected.
Reaching into the box. At [0, 40, 30, 0, 20, 0] with that machine box and margin 0:
Collision: 3 pairs closer than 0 mm, worst link5 ↔ Machine (minimum clearance −221.376 mm).
The contacts table lists link5 (−221.376), link4 (−216) and link6 (−214.32). The links' centre lines are deep inside the box.
Self-collision. Folding the elbow to [0, −90, 155, 0, 125, 0] gives 4 self-contacts. The worst is link1 ↔ link6 at −70.533 mm.
How to read the result
- Callout: a quick verdict and the worst offending pairs.
- Minimum clearance: the smallest gap between any checked pair, in mm. Positive means a gap, negative means overlap.
- Closest pair: which link and which obstacle (or link) it belongs to.
- Contacts table: every pair below the margin. environment means an obstacle, self means two links.
A negative number is the penetration depth: how far the deepest point of the link's capsule lies inside the nearest face of the box (for two boxes, the smallest overlap). Shoulder and elbow at 50° and 35° instead give −138.472 mm for link6, a shallower pose.
Tips and common mistakes
- Use a realistic margin (for example 20–50 mm) to cover model simplification, tool geometry and calibration error. 0 mm only finds actual overlap.
- Box positions are centres, and sizes are full edge lengths. A 700 mm tall box centred at z = 350 stands on the floor.
- Capsules and cylinders are defined by start (x, y, z), end (in the size columns) and radius. A cylinder is checked as a capsule whose caps end at its faces, so near its rim the real part can be up to 0.41 × r closer: keep the margin at least that large next to wide cylinders.
- Model the gripper. Add it to the tool offset and treat it as an obstacle-sized margin, or the check will miss the part that hits first.
- Adjacent links and pairs that already touch at home are skipped automatically, as in MoveIt's allowed-collision matrix. The fixed base isn't checked against obstacles.
FAQ
Does it check the whole motion?
No, one pose per run. For a full path, use the Kinetica app; to find a way around the obstacles, use the Kinetica path planner.
What does negative clearance mean?
The shapes overlap, and the number is the penetration depth in mm (for a capsule in a box: how far its centre line lies below the nearest face, plus the radius).
Can I check self-collision only?
Yes. Leave the obstacle table empty and keep Check self-collision on.
How accurate is the robot geometry?
It's a simplified capsule-and-box envelope. Keep a safety margin and verify on the real robot at reduced speed.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://kineticacollisioncheck.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://kineticacollisioncheck.usefulweb.site/mcp· tool namekinetica_collision_check
Example request
curl -s -X POST https://kineticacollisioncheck.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"robot":"kx6-1400","joints":"0, 0, 0, 0, 90, 0","obstacles":[{"name":"Table","shape":"box","x":900,"y":0,"z":350,"sx":700,"sy":900,"sz":700}],"margin":10}'