Check the motion between two poses

Reaching the destination is not enough if a link hits an obstacle on the way. Compare a direct motion with an alternative that checks the whole arm along its route.

Browser walkthrough·Beginner·About 15 min

Planar arm lab

Compare a direct joint motion with a checked route. Reachable endpoints can still have an obstructed path between them.

Robot arm workbench

Click the bench to choose a target.

Gripper (1.16, -0.15) m

More controls

Shoulder -50.0° · Elbow 100.0°

Gripper (1.16, -0.15) m. Pose clear. Click the workbench to choose a target, then solve or plan the motion below. The links remain in one horizontal plane.

2D reference and fallback
Two-link arm viewed from aboveThe gripper is at x 1.16, y -0.15 meters. No collision at this pose.+x+y
Optional reasoning check
Predict before you try

Does a reachable target guarantee a collision-free motion?

Model limits

Two ideal links, 1.00 m and 0.80 m. Free joints in one horizontal plane, no gravity, torque, joint limits, self-collision, or grasp physics. The planner tests direct motions and a finite set of waypoints at at most 2° joint increments. This sampling can miss collisions between poses; it is not a hardware motion planner.

Requirements and learning goals

Before you start

  • The reachability lesson in this track
  • A browser with JavaScript

You will be able to

  • Separate endpoint reach from motion feasibility
  • Inspect link and carried-object clearance
  • Explain sampled planning limitations

Reaching is not the same as getting there

An arm can reach both a pickup location and a destination while hitting an obstacle between them. A motion planner must consider the links throughout the move, not just the gripper at the endpoints. Allow about 15 minutes to compare routes.

The obstacle is a circle centered at (0.80, 0.90) m with radius 0.15 m. The collision check treats each link as a segment with 0.04 m radius. During a carry it also checks a 0.09 m object around the gripper. That extra shape matters when a narrow opening fits the empty gripper but not its load.

Inspect a failed direct motion

The example pickup is (1.35, 0.20) and the destination is (0.15, 1.40). A direct joint motion changes both joint angles linearly between their endpoints. The gripper generally follows a curve, not a straight line in the room.

The lab samples that joint motion with increments no larger than 2° for either joint. It checks both link segments and the carried object at each sample. The route planner first tries both inverse-kinematics branches directly, then tries a finite set of folded-arm waypoints. It does not search every possible motion.

Checkpoint 1 of 2

At one sampled pose, the gripper is the closest part of the arm to the obstacle: 0.22 m from the obstacle's center. Does that pose pass the collision check?

Commit to an answer. Every choice explains itself.

Try it

  1. Open More controls, keep Include obstacle checked, and press Check direct pick-to-place. The lab shows the pickup pose and reports how many sampled poses collide; it does not run the failed motion.
  2. Predict whether a different elbow branch could avoid the obstacle. Press Plan checked route.
  3. Open More controls to inspect the checked motion with its slider. Watch the full arm and dotted gripper path. Press Run motion if you want a replay; Pause motion stops it.
  4. Remove the obstacle, which resets the lab, then repeat the direct check. Explain what changed.

Check the expected result

With the obstacle present, the direct positive-elbow motion includes collisions. The planner finds a sampled alternative for this supplied scenario. Its last gripper position is (0.15, 1.40) m. With the obstacle removed, the direct collision count is zero.

Checkpoint 2 of 2

In a different scene, the planner tries both inverse-kinematics branches directly and then its folded-arm waypoints. Every candidate collides, and it reports no route. What does that establish?

Commit to an answer. Every choice explains itself.

You are done when you can explain why a clear endpoint is insufficient and identify which parts of a carried object must be included in a collision model.

Troubleshooting

Use Check direct pick-to-place before Plan checked route to restore the documented start and target. A new target clears the old route so it cannot run accidentally. If you get No route found, the tested alternatives failed; that message does not prove no route exists. Reset and reproduce the supplied example before experimenting further.

Sampling can miss contact between poses. The model also omits self-collision, joint limits, speed limits, and torque. Production planners need a more complete robot and collision model. MoveIt's planning tutorials provide a continuation after this geometric exercise.

Can you do each of these?

  • Separate endpoint reach from motion feasibility
  • Inspect link and carried-object clearance
  • Explain sampled planning limitations

0 of 2 checkpoints solved. Try checkpoint 1

Previous: Find joint angles for a target
All lessons in this topic
  1. 1. Turn joint angles into a gripper position
  2. 2. Find joint angles for a target
  3. 3. Check the motion between two poses
  4. 4. Complete a simulated pick-and-place task

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.