Skip to the content
FixTheRobot Explore Robotics / Manipulator Basics / Capstone

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.

  1. Select and configure the manipulator: speed and acceleration limits, servo gain, grip force, IK solver, planner and planning clearance (Module 01, Module 11).
  2. Define the base frame WTB{}^{W}T_{B}, where the robot stands; the page checks with IK that every part and zone can be reached (Module 03).
  3. Define the end-effector frame 6TTCP{}^{6}T_{TCP} from the gripper datasheet; a touch-off test measures any error (Module 14).
  4. Calculate the target poses (pre-grasp, grasp, pre-place, place) in the world and in the base frame.
  5. Solve inverse kinematics for all four, checked by forward kinematics (Module 07).
  6. Check joint limits for every solution.
  7. Generate a collision-free trajectory with RRT or RRT* in joint space (Module 13, Module 10).
  8. Move to the object: the joint servo tracks the trajectory under a safety monitor.
  9. Align the gripper with a straight-line Cartesian descent.
  10. Grasp: the jaws close, and the six grasp conditions decide what happens (Module 12).
  11. Lift and transport, planning again with the carried part in the collision model.
  12. Place: descend, release and check the placement.
  13. 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:

Grasp pose in the base frame
BTgrasp=(WTB)−1 WTgrasp,WTgrasp=Trans⁡(xo, yo, ztop−d)  Rz(ψ) Rx(π){}^{B}T_{\text{grasp}} = \left({}^{W}T_{B}\right)^{-1}\,{}^{W}T_{\text{grasp}}, \qquad {}^{W}T_{\text{grasp}} = \operatorname{Trans}(x_o,\, y_o,\, z_{\text{top}} - d)\;R_z(\psi)\,R_x(\pi)

Here Rx(π)R_x(\pi) turns the gripper to point down and ψ\psi is the yaw of the closing axis. IK solves

IK problem
BT6(q) 6TTCP=BTgrasp{}^{B}T_{6}(q)\,{}^{6}T_{TCP} = {}^{B}T_{\text{grasp}}

by damped least squares,

Damped least-squares step
Δq=JT(JJT+λ2I)−1e,λ=0.02\Delta q = J^{T}\left(J J^{T} + \lambda^{2} I\right)^{-1} e, \qquad \lambda = 0.02

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:

Friction condition
2 μ Fgrip  ≥  1.5 m g2\,\mu\,F_{\text{grip}} \;\ge\; 1.5\, m\, g

For the heavy box that means, per pad,

Heavy box grip force
Fgrip≥1.5⋅1.6⋅9.812⋅0.35≈33.6 NF_{\text{grip}} \ge \frac{1.5 \cdot 1.6 \cdot 9.81}{2 \cdot 0.35} \approx 33.6\ \text{N}

which is more than the default 30 N.

Each planned path segment is time-scaled with a quintic, s(u)=10u3−15u4+6u5s(u) = 10u^3 - 15u^4 + 6u^5. This is sized so that the peak joint speed 1.875 Δq/T1.875\,\Delta q / T and the peak acceleration 5.77 Δq/T25.77\,\Delta q / T^2 stay within the limits you set. The servo then tracks the trajectory with

Joint servo law
q˙cmd=q˙ref+kp (qref−q)\dot q_{\text{cmd}} = \dot q_{\text{ref}} + k_p\,(q_{\text{ref}} - q)

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.

CriterionPointsMeasured from
Successful grasp20Per part: 1 / (number of attempts) if it was grasped, otherwise 0. Averaged over the three parts.
Successful placement25Per 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 avoidance20Minus 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 compliance10Minus 5 for every motion in which a joint of the real robot left its range.
Trajectory validity15The 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 time10Robot 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
  1. 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.
  2. Base frame: keep (0, 0) and yaw 0°, then press Fix the base frame. All six locations are reachable.
  3. TCP: 100 mm. The touch-off test then shows a 0.0 mm error.
  4. 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.
  5. 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.