By Kevin McAleer, 6 Minutes
Page last updated November 21, 2026

Checking one pose answers one question. A robot has endless poses, and the one that breaks it is never the one you thought to check.
A sweep moves a joint from one end of its range to the other in small steps, checks for clashes at every step, and tells you the exact angles where things collide.
The shoulder still has the wide limits from the last lesson, -150 to 150.
BetterCad runs each joint through its range. After a moment the results appear in Properties, under Sweep the joints:

So the shoulder is safe between about -131 and 131 degrees, and in trouble beyond that on both sides. Nothing is listed for the elbow, which means the forearm clears everything across its whole range.

The arm moves to the angle where the trouble starts and the two parts turn red. Now you can see why it hits: here, the bottom corner of the upper arm comes round and meets the base plate.
That tells you what a design fix would look like. Round off that corner, or raise the shoulder a few millimetres, and the safe range grows.
Under the results is a button: Set the limits to -131° and 131°.
The bar says “Set the limits of Shoulder”. Edit the joint and you’ll find Lower is now -131 and Upper is 131. The slider stops there, a drag stops there, and the URDF file will say so too.
“Nothing hits from end to end.”
That sentence is the goal. When a sweep says it, no single joint can drive the arm into itself.
| Setting | What it does |
|---|---|
| Move: Each joint in turn | Sweeps one joint at a time from end to end, with the others held where they are |
| Move: All joints together | Tries a set of poses with every joint moved at once |
| Move: one named joint | Sweeps just that one |
| Step | How far a joint moves between checks. It starts at 5 degrees |
| Poses | For All joints together, how many poses to try. It starts at 200 |
Each joint in turn is fast, and it’s the right first check. But it holds the other joints still, so it only finds clashes along one path. Run it from home, then again from your other named poses.
All joints together finds the clashes that need two joints to cooperate, such as a forearm that only folds back into the upright when the shoulder is leaning too. Its results read differently, for example “Upper arm hits Base in 23 of 200 poses”, and a clear run says “Nothing hits in 200 poses.”
A smaller Step finds the edge of a clash more exactly and takes longer. More Poses makes a rare clash less likely to slip through, and takes longer too.
The sweep tells you where the design runs out of room. Your servo has limits of its own. Use whichever is tighter:
For our arm on a standard servo, the honest setting is -90 to 90.
-90 and 90.Why: There is nothing to sweep
Why: A sweep tests where the joint is allowed to go, not where it could go without limits
Quick quiz 1 of 3
What does a sweep do that a clash check doesn’t?
Quick quiz 2 of 3
A sweep with Each joint in turn says “Nothing hits from end to end”. Is the arm certain to be clash-free?
Quick quiz 3 of 3
The sweep says the shoulder is clear to 131 degrees. Your servo turns 90 degrees each way. What limits do you set?
You can use the arrows ← → on your keyboard to navigate between lessons.
Comments