Theme
Tier 6 · lesson 2 of 9 · 40 min

Prove the grasp — and what is still open

You will: Verify a grasp with two independent checks and a control, and report honestly when it fails.

Builds on Solve the kinematics, and find out what the arm cannot do and Scenarios are tests you can watch.

pick_and_place moves through named poses and closes the jaw, and proves nothing about holding anything. This lesson makes the grasp a test.

Two checks, from two sides, because each can be fooled alone. The robot's belief: the jaw stopped short of closed, so something is between the jaws. Ground truth: the simulator knows where the cube is, and it rose with the jaw. And a control: the same grasp on empty air must fail both checks, or the verifier is a detector that says yes to nothing.

The SO-101 brings two complications. Its collision shapes are boxes, for speed, and boxes are too coarse to grasp with: the fixed jaw's box alone is 65 mm across and fills the gap the cube has to go in. So the two jaw links went back to upstream's meshes, and the cost was measured, not guessed: nothing you can see with the arm moving freely, and most of the simulation's speed while the meshes are actually squeezing the cube. And its jaw is a single swinging finger against a fixed one, so the grasp is a pinch on one side, not a squeeze from two: the cube's centre goes half a cube in from the fixed jaw's inner face, not on the tool frame.

In the simulation

Go through the grasp by hand, the control included. The page has no contact: its jaw closes straight through the cube, and nothing rises with it. That is the point. Moving through poses and closing the jaw proves nothing. The page is kinematic, with no physics; the two checks run in Gazebo, with mesh-shaped jaws, in the steps below.

Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics. That is what the steps below are for.

The SO-101 loads as you reach it.

In this lesson

  1. Open the jaw fully, with [ four times (or the jaw's + button), or Space in Game mode.
  2. With the jaw open, put the tool at the cube, within 6 cm of the bench.
  3. The control: move to the empty bench on the other side, y below −0.08, low, and close the jaw fully. A real verifier must say no here.

Do it

  1. Read which links collide as what. Every link is a box except the two jaws.

    grep -A4 '^  collision:' src/threevn_robot_description/config/so101_follower.yaml
    

    Expect: default: box, then links: with gripper_link: mesh and moving_jaw_so101_v1_link: mesh.

  2. Start the arm in the world with the cube. Leave it running.

    make sim WORLD=so101_bench
    

    Expect: Three controllers active.

  3. In a second terminal, grasp and prove it. The verifier solves the pinch with the lesson before's solver, descends straight onto the cube, closes, lifts 6 cm, and then does it all again at empty bench, 40° round the pan axis.

    make grasp
    

    Expect: jaw stopped at +0.292 rad (+16.7 deg) -> holding=True, cube rose +58 mm -> lifted=True; then the control, jaw stopped at +0.001 rad -> holding=False, cube rose +0 mm -> lifted=False; and ok grasped, lifted, and the control did not false-positive.

  4. Read what "holding" means on this arm, and why it is a share of the travel rather than a fixed angle.

    grep -n -B3 -A3 '^HOLD_SHARE' scripts/verify_so101_grasp.py
    

    Expect: Holding is the jaw stopping more than a tenth of its travel from closed, 0.14 rad. The 35 mm cube stops it at about 0.29; empty air lets it reach 0.00.

  5. Read what the meshes cost, measured both ways in docs/manipulation.md, "The SO-101's grasp".

    grep -n -A12 "What the meshes cost" docs/manipulation.md
    

    Expect: Moving freely, no difference the noise lets through: a real-time factor of 0.40 to 0.41 with mesh jaws and 0.38 to 0.42 with boxes, on the same busy machine. Holding the cube, 0.16 and 0.17, against 0.42 and 0.45 a moment later in the same pose with the cube dropped: the cost is in the contact, and only while it lasts.

You will know it worked when: make grasp in so101_bench reports holding and lifted both true for the cube, both false for the control, and ends ok.

When it goes wrong

The jaw closes to about 0.00 rad on the cube, and the cube does not rise.

Why: Box collisions on the jaws. The fixed jaw's bounding box fills the space between the jaws, so the cube is pushed aside, never pinched. That is what the first run here did.

Fix: gripper_link: mesh and moving_jaw_so101_v1_link: mesh under collision.links in the profile.

The close never reports, and the verifier stops with gripper - no result within 15s of robot time.

Why: The controller's stall check. Closed on the cube at its effort limit, the jaw trembles at 0.003 to 0.024 rad/s where the meshes touch, over the default 0.001 rad/s, so it is never "stopped".

Fix: stall_velocity_threshold: 0.05 and stall_timeout: 0.5 in so101_controllers.yaml, which is what is there now.

The cube is knocked over before the jaw closes, and the arm stops 3 cm high with a shoulder 10° short.

Why: The descent aimed the cube's centre straight down instead of the tool frame, so the fixed jaw swept sideways through the cube, and the arm pressed on it.

Fix: Descend and lift with the TOOL frame moving vertically, as the verifier now does.

Terms

Belief versus ground truth
What the robot can measure about itself, against what is actually true. A simulator knows the second; a real robot often does not.
Pinch point
Where the jaws actually meet an object. With one moving jaw, it is not where the fingers' midline would put it.

Every term in the course: glossary.

Check yourself

Answer in your head first, then open it.

Why does the verifier turn the cube square to the jaws before grasping?

With the jaw pointing down the wrist roll is free, so the solver's answer decides which way the jaws face. This lesson is about whether a grasp can be believed; finding the cube's orientation from the camera is separate work.

Holding the cube cost the simulation most of its speed. Why not leave the jaws as meshes and ignore it?

Every timing result is stretched while it lasts, and the test suite's floor is 0.3. The cost is measured so it can be paid only where a grasp needs it, which is why every other link stays a box.

Which of the two checks will still exist on the physical arm?

Holding, which reads the jaw's own position. Lifted asks the simulator where the cube is, and a real bench has no one to ask.

Stretch

Switch the jaws back to boxes, restart, and run make grasp. Record what holding and lifted say, and explain each from the geometry of the boxes.

Hint

The fixed jaw's collision box is printed by make urdf; compare its size with the cube's 35 mm.

Going deeper