← emboscale.com

Verify a robot program before deployment: reach, joint limits, singularities

To verify a robot program before deployment, check three kinematic limits on every point and every segment of the path: reach (can the arm get there at all), joint limits (does every axis stay inside its travel) and singularities (does the path pass near a pose where the arm loses a degree of freedom). A program can look right in a 3D view and still fail on all three, because the failures sit between the waypoints.

This post shows each check with arithmetic, the mistakes that slip through, and the order to run them in. Collision, payload and timing checks matter too, and they come after these three.

Check 1: reach

Reach is a distance test. For a 6-axis arm with a spherical wrist, the point that has to be reachable is the wrist centre. The tool tip follows from it. Take the target, then step back along the tool's approach direction by the tool length.

A hypothetical example. The arm's shoulder axis (joint 2) can place the wrist centre up to 1,250 mm away. The pick point is 1,150 mm out from the shoulder and 100 mm below it. The gripper is 250 mm long and points straight down.

  • Wrist centre: 250 mm above the pick point, so 150 mm above the shoulder, 1,150 mm out.
  • Distance: √(1,150² + 150²) = √1,345,000 ≈ 1,160 mm.
  • Margin: 1,250 − 1,160 = 90 mm. Reachable.

Now the fixture moves 110 mm outward. The wrist centre is at 1,260 mm out and 150 mm up: √(1,260² + 150²) = √1,610,100 ≈ 1,269 mm. That is 19 mm beyond reach. A program for this target is geometrically impossible, however neat its waypoints look. The correct output is a refusal that states the shortfall: "target 19 mm beyond reach".

Also check the lower bound. Targets close to the base can fall inside the inner dead zone where the arm cannot fold tightly enough.

Check 2: joint limits

Every axis has a travel range from the datasheet, and the check must hold at every point along the path, including between the taught points. Two cases cause most failures.

Wrap-around on wrist axes. Joint 6 on many arms travels ±340° or so. A target orientation can be reached by two joint 6 angles 360° apart. If the program needs +350° and the limit is +340°, the same tool orientation exists at −10°, but a linear move from the previous pose may require unwinding almost a full turn, and the controller stops with a limit error.

Configuration flips. The same tool pose can be reached with the elbow up or down, or the wrist flipped. A linear move between two points that sit in different configurations forces a flip mid-path, and the intermediate joint angles can leave the limits.

The test is simple to state: solve inverse kinematics along the whole path, keep the configuration consistent, and compare every joint angle against its limit. Report the smallest margin, so a reviewer sees "joint 6 reaches 338° of 340°" and knows the program works with no room to spare.

Check 3: singularities

At a singularity, two or more axes line up and the arm loses the ability to move the tool in some direction without very fast joint motion. Robohub's overview lists three kinds:

  • Wrist: the two outer wrist axes (joints 4 and 6) line up, which is joint 5 near 0° on a typical arm.
  • Shoulder: the wrist centre sits on the axis of joint 1.
  • Elbow: the wrist centre lies in the plane of joints 2 and 3, so the arm is fully stretched and the elbow locks.

Singularities do not need to be hit exactly to cause trouble. To a first approximation, the joint speed needed to keep the tool moving at a given rate grows as 1 / sin(θ), where θ is the angle away from the singular pose.

A worked example for the wrist. The tool must rotate about its approach axis at 30°/s while moving along a straight line. Joint 4 has a speed limit of 400°/s.

  • Required joint rate ≈ 30 / sin(θ5).
  • At θ5 = 10°: 30 / 0.174 ≈ 173°/s. Fine.
  • At θ5 = 2°: 30 / 0.0349 ≈ 860°/s. Over the limit.
  • At θ5 = 0.5°: 30 / 0.00873 ≈ 3,440°/s. The controller stops or deviates from the path.
  • The break-even angle is asin(30 / 400) = asin(0.075) ≈ 4.3°. Any path that passes within about 4° of θ5 = 0 at that tool speed violates the limit.

The waypoints can all be at comfortable angles and the segment between two of them can still cross θ5 ≈ 0. That is why a check on waypoints alone misses it.

Common fixes: tilt the tool, as Robohub notes for spray guns at 5 to 15° (cheap to try, though it does not always work), move the part or the robot base so the path leaves the singular region, or split the move and slow down near it. Controllers also offer singularity-handling modes that let the tool deviate from the path, which may be unacceptable for welding or dispensing.

Why a program that looks right fails on the floor

Checking waypoints only. All three failures live in the motion between points.

Using the datasheet reach as a sphere around the base. Real reach depends on the wrist, the tool length and the approach direction. Subtract the tool first.

Leaving the part out of the model. A gripper holding a part changes the swept volume and the effective tool length.

Trusting a clean simulation with a wrong frame. If the tool frame or base frame in the model differs from the cell as built, every check passes against the wrong geometry. Calibrate, then dry-run at reduced speed.

Treating verification as safety validation. Kinematic checks prove the arm can execute the motion. Risk assessment, guarding and commissioning follow your site's process and the applicable standard, such as ISO 10218 for industrial robot safety.

Ways to run these checks

Approach Strong at Watch for
Maker simulator (ROBOGUIDE, RobotStudio) Controller-accurate motion on one brand Someone has to read the results and notice the margins
General OLP (RoboDK and similar) Many brands, reach and limit warnings Singularity and configuration behaviour differs by post-processor
Dry run at low speed on the floor Catches frame errors Risks the cell, and singularity trouble shows up late
Emboscale, an AI factory agent that plans layouts, balances lines, schedules shifts and writes verified robot programs Runs the checks automatically on every generated program Gives up hand-tuning of each path

The dry run is still worth doing with any of them. Simulation checks the model, and the dry run checks that the model matches the cell.

Where this fits

Emboscale runs an 8-check kinematic verification on every robot program it authors, covering reachability, joint limits and singularities along with collisions, payload, timing and more, before the program is marked verified. When a target is infeasible, it refuses and states the number, such as the distance beyond reach. Your engineers keep approval, and site safety validation stays your process. See robot program verification for the full list of checks.

Frequently asked questions

How do I check if a robot can reach a point?

Subtract the tool length along the approach direction to find the wrist centre, then compare its distance from the shoulder axis with the arm's reach. If the distance is larger, the point is out of reach for that approach direction.

What happens when a robot program hits a singularity?

The joints needed to hold the tool path would have to move very fast. The controller either stops with an error, slows the tool, or lets it leave the programmed path, depending on the mode set. Changing the tool angle or the part position is the usual fix.

Can software verify a robot program automatically?

Yes. Reach, joint limits, singularities and collisions can be computed along the full path. Emboscale, an AI factory agent, runs an 8-check kinematic suite on every program it generates and refuses infeasible targets with the numbers. Safety validation of the site remains a human process.

Is a successful simulation enough to deploy a robot program?

It is necessary and not sufficient. The simulation is only as accurate as the tool, base and fixture frames in the model, so calibrate those and do a reduced-speed dry run before production.

Further reading: robot program verification · can you trust AI-written robot programs? · how long does it take to program an industrial robot?