LIMO Collision Model
A robot arm on wheels has to know when it is about to hit itself, and checking the full 3D meshes is slow. I rebuilt the LIMO cobot's collision shapes as 14 hand-fitted boxes tuned on 30,000 poses. It gives the same answer as the meshes on about 98% of poses, with 51 checks per pose instead of 70.
97.3 → 99.3
SCORE ON THE GRADING SET
78 → 13
FALSE ALARMS
70 → 51
GEOMETRY PAIRS PER POSE
14
COLLISION BOXES
30,000
TRAINING POSES
99.21
SCORE ON 10,000 UNSEEN POSES
COMPARISON // COLLISION BOXES ONLY

The first model: a few large boxes that fully enclose each part.
- 78 false alarms on 1,000 poses
- Boxes fill empty air around the links

The tuned model: smaller split boxes and thin antenna boxes.
- 13 false alarms on the same poses
- 51 geometry pairs per pose instead of 70
The problem
A motion planner asks one question thousands of times: is the robot hitting itself in this pose? Checking the full meshes is accurate but slow. The task was to build a simpler collision model of the LIMO cobot that gives the same yes/no answer as the mesh reference, and gives it faster.
The grade combined both. Correctness counted missed collisions more heavily than false alarms (0.7 against 0.3), and speed was measured against the reference on timed runs:
score = 40·C + 60·P
C = 0.7(1 − FNR) + 0.3(1 − FPR)
P = min(1, (r / 0.9)²)
Starting point
My first model used plain boxes, mostly one per link, sized from each mesh's bounding box. It scored 97.32, with 4 missed collisions and 78 false alarms on the 1,000 grading poses. Almost all of the lost points were false alarms: boxes fill empty air around a link, so the model reported contact where there was none.
I tried an automatic tool first (URDFApproxGeom, run from its Docker image). Its capsule version of the robot had 90 shapes and its sphere tree had 107. The number of pairs to check grows with the square of the shape count, so both were far too slow. The drafts were still useful, because they showed that few shapes per link was the right direction.
What I did
An offline grader. The grader loads the URDF with Pinocchio, so I did the same in Python. My checker agreed with the grader on 1,000 of 1,000 poses, which meant I could test a change in under a minute without a timed run.
Face tuning. Each face of each box moves in or out in steps of 4, 2, 1 and then 0.5 mm. A move is kept only if it lowers 1.41·FN + FP on the training poses. The 1.41 comes from the grading formula: one missed collision costs about 1.41 times as much as one false alarm. A box does not have to enclose its mesh, only the yes/no answer has to match. Many faces moved inward, and false alarms dropped about 6×.
Splitting links where the shape changes. Two arm links are dumbbell-shaped, with a motor housing at each end and a thin tube between. I sampled the mesh surface at about one point per mm², cut it into 2 mm slices along the long axis, and searched for the three-segment split with the smallest total box volume. The cuts landed on the housing-to-tube transitions. An earlier split into four equal boxes straddled those transitions and gained nothing.
Antennas. Two thin boxes for the antennas on the base, tuned together with everything else. The tuning shrank them to the part the arm can reach. That fixed a group of missed collisions without the false alarms full-size antenna boxes had caused.
Removing redundant pairs. A link pair is disabled only if dropping it changes nothing, or almost nothing, on 40,000 labeled poses, because another pair catches every contact it would catch. These pairs do collide in the reference model. They are redundant, not impossible.
Pair ordering. This was the largest speed gain and it changed no predictions. With early exit on, Pinocchio stops at the first pair that hits and checks pairs in the order the boxes appear in the URDF. Putting the base box that is hit most often first, together with the pruning, took the speed ratio from about 0.87 to about 0.93.
Results
| Step | Missed / false alarms | Speed ratio | Score |
|---|---|---|---|
| First box model | 4 / 78 | 0.927 | 97.32 |
| Face tuning | 22 / 13 | 0.901 | 98.60 |
| More boxes, tuned | 17 / 15 | 0.857 | 93.11 |
| Antenna boxes added | 6 / 12 | 0.859 | 93.95 |
| Redundant pairs removed | 6 / 12 | 0.869 | 95.22 |
| Pair ordering, 5 boxes removed | 8 / 11 | 0.929 | 99.29 |
| Re-tuned final model | 7 / 13 | 0.930 | 99.27 |
The middle rows are the interesting part. Adding boxes made the model more accurate and the score worse, because speed is 60% of the grade. The score only recovered once I removed the pairs and boxes that were not earning their cost.
Not fooling myself
Tuning box faces against a pose set is curve fitting, so I treated it like one.
- The reference model in Pinocchio is the ground truth, so I labeled 40,000 fresh poses with the same uniform sampler the grader uses: 30,000 for tuning and 10,000 held back.
- The two given pose sets and the held-back set were only used to accept or reject a change. A change was kept only if it improved on both given sets.
- The gap between tuning and held-back scores stayed small: 99.41 against 99.21.
- That is also why the final model is not the highest-scoring row above. The row before it scored 0.02 higher on the grading set and lower on both other sets.
One odd bug
The reference gripper meshes measured 58 × 62 × 51 metres. Their files declare millimetres, but the collision library ignores the unit and reads the numbers as metres, so the reference gripper is about 1000× too large. I built the gripper box from the mesh bounds scaled by 0.001 and confirmed the size against the converted STL files.
Tools
Pinocchio (Python bindings) for all measurements, RViz to compare visual and collision geometry, assimp for mesh conversion and URDFApproxGeom for the first drafts. The analysis scripts were written with help from an AI assistant. I ran them, checked their output against the grader and decided which changes to keep.
What I learned
Accuracy and speed pull against each other, and the grading formula decides where to stop. The best single change was not a better shape at all. It was reading how the library iterates and reordering a list.
APPENDIX A // MEDIA



