Manipulator Basics · Capstone
Capstone: Autonomous Robotic Pick and Place
Configure a 6-DOF arm, define its frames, compute grasp poses, solve IK, plan collision-free motion around a wall and a pillar, and move three parts of different sizes into their target zones. The score comes only from what happened in the simulation.
The mission
A work cell has a 6-DOF articulated arm with a parallel-jaw gripper, a wall and a pillar, three parts on one side of the wall and three colour-coded target zones on the other:
- small cube: 30 mm, 0.10 kg, turned 20°, goes to zone A;
- tall block: 40 × 30 × 60 mm, 0.20 kg, turned −15°, goes to zone B;
- heavy box: 90 × 50 × 45 mm, 1.6 kg, friction coefficient 0.35, goes to zone C. At 90 mm it is wider than the open jaws along its length.
You carry out the 13 steps of a real pick-and-place pipeline. Steps 1 to 3 set up the robot once, steps 4 to 12 repeat for each part, and step 13 ends the mission. Every step is a computation you trigger with your own parameters. When you get a parameter wrong, the robot behaves wrongly, as it would on real hardware.
- Select and configure the manipulator: speed and acceleration limits, servo gain, grip force, IK solver, planner and planning clearance (Module 01, Module 11).
- Define the base frame , where the robot stands; the page checks with IK that every part and zone can be reached (Module 03).
- Define the end-effector frame from the gripper datasheet; a touch-off test measures any error (Module 14).
- Calculate the target poses (pre-grasp, grasp, pre-place, place) in the world and in the base frame.
- Solve inverse kinematics for all four, checked by forward kinematics (Module 07).
- Check joint limits for every solution.
- Generate a collision-free trajectory with RRT or RRT* in joint space (Module 13, Module 10).
- Move to the object: the joint servo tracks the trajectory under a safety monitor.
- Align the gripper with a straight-line Cartesian descent.
- Grasp: the jaws close, and the six grasp conditions decide what happens (Module 12).
- Lift and transport, planning again with the carried part in the collision model.
- Place: descend, release and check the placement.
- Return to a safe configuration: plan back to the home pose.
The work cell
Loading the work cell…
The maths each step uses
The poses chain through the frames you define. The robot's own computations are relative to its base, so a pose given in the world must be brought into the base frame:
Here turns the gripper to point down and is the yaw of the closing axis. IK solves
by damped least squares,
and the result is accepted only if forward kinematics reproduces the target to within 0.2 mm and 2 mrad. A grasp holds only if two-pad Coulomb friction carries the weight with a safety factor of 1.5:
For the heavy box that means, per pad,
which is more than the default 30 N.
Each planned path segment is time-scaled with a quintic, . This is sized so that the peak joint speed and the peak acceleration stay within the limits you set. The servo then tracks the trajectory with
How you are scored
The score is computed from the mission log, which records what the simulated robot did. No points come from pressing a button, and none from a step being marked done.
| Criterion | Points | Measured from |
|---|---|---|
| Successful grasp | 20 | Per part: 1 / (number of attempts) if it was grasped, otherwise 0. Averaged over the three parts. |
| Successful placement | 25 | Per part placed in its own zone: 1 − 0.5·min(1, error / 50 mm), where the error is the distance of the part's centre from the zone centre. |
| Collision avoidance | 20 | Minus 10 for every protective stop. The monitor checks the real robot every 10 ms: links, gripper and carried part against the table, the obstacles and the parts. |
| Joint-limit compliance | 10 | Minus 5 for every motion in which a joint of the real robot left its range. |
| Trajectory validity | 15 | The fraction of executed motions that were validated before execution, stayed within the joint limits and kept the peak TCP tracking error at 10 mm or less. |
| Completion time | 10 | Robot time (motion, plus 0.5 s per gripper action): full marks at 40 s or less, falling linearly to none at 120 s. Awarded only once every part is placed and the robot is home. |
Passing needs all three parts in their zones, the robot back at home and at least 70 points.
Hints
- The TCP offset matters. With the wrong value, the robot puts its flange where you meant its fingertips to go. Run the touch-off test after defining it.
- The jaws close along the gripper's y axis, so align that axis with a pair of faces. The jaws are symmetric, so a yaw of ψ and ψ + 180° grip the same faces; if one of them gives a joint-limit problem, try the other.
- The heavy box is 90 mm long, and the jaws open to 85 mm. Read the friction line of the predicted grasp conditions before going down.
- If the planner fails, give it more iterations, try another seed, or reduce the clearance slightly. If a protective stop happens, use Recover: move straight up and plan again.
- Once the setup is right, Run steps 5 to 12 automatically runs the pipeline for the current part with your settings. It is still your parameters being tested.
Solution walkthrough
Show a full solution
- Configure: keep the 6-DOF arm and set the grip force to 40 N (2·0.35·40 = 28 N ≥ 23.5 N for the box). The other defaults work.
- Base frame: keep (0, 0) and yaw 0°, then press Fix the base frame. All six locations are reachable.
- TCP: 100 mm. The touch-off test then shows a 0.0 mm error.
- For each part, compute the target poses with yaw equal to the part's yaw (cube 20°, block −15°, box 0°, so the jaws close across the box's 50 mm width), fingertips 15 mm below the top, approach 100 mm and release 5 mm. Then run steps 5 to 12 (or the automatic run) and press Next part.
- After the third part, return to the safe configuration.
A run like this places all three parts within a millimetre of their zone centres with no protective stops, in under a minute of robot time. That scores about 98 points; the only deduction is for time.
Assumptions and limitations
- Kinematic simulation with an ideal servo. Each joint is a velocity-limited, acceleration-limited position servo (see Lab 08). Link inertia, gravity and motor torque limits are not simulated in the capstone; the 2R lab covers dynamics-based control.
- Collision geometry is approximate. Links are capsules, the gripper is three boxes, obstacles and parts are boxes, and the carried part is checked as an oriented box against obstacles and parts and as a sphere against the links. Checks are exact for these shapes but conservative for the drawn robot.
- The grasp model is quasi-static. It assumes rigid boxes, top grasps only and Coulomb friction with a safety factor. A released part drops straight onto the support below it.
- Perfect perception. Part poses are given exactly; real cells estimate them with cameras and must allow for that error.
- Planning is probabilistic. RRT may fail within the iteration limit even when a path exists. The planner retries with other seeds, and the result is always validated before execution.
The page states only what was computed. When a step fails, the message gives the measured reason, such as the joint, the obstacle, the misalignment angle or the friction force.