ArmSkillComp
Closed-loop skill selection for a simulated robot arm
Code on GitHubAbstract
I trained a goal-conditioned policy to select one manipulation skill at a time in a MuJoCo workcell. A symbolic planner supplies shortest-path labels during training. At runtime, the policy re-scores its options after each move using the arm’s measured state. It completed 1,021 of 1,024 seeded tasks.
Demos
The workcell has a Panda arm, an optical reader, and an interlocked rotary fixture. Goals can specify inspections, index counts, final carrier locations, and the order of operations across carriers.
Method
Closed-loop skill selection
Each skill–carrier pair has 34 features covering measured and desired state, the candidate skill, ordering constraints, and fixture occupancy.
- Observe the cellCurrent state and target outcome
- Score candidates12 skills × 4 carriers
- Run one skillScripted MuJoCo controller
- Check the outcomeMeasure the state after motion
A shared PyTorch MLP scores all 48 candidates with three 64-unit SiLU layers and 10,625 parameters. It executes the highest-scoring pair given measured state st, goal g, and features ϕ.
All candidates compete at inference time without a planner-provided action mask. The simulator checks preconditions and stops the rollout on a failed skill.
Training from a symbolic planner
I used breadth-first search over discrete skill effects to label every action that starts a shortest path to the goal. The planner only permits an index operation when the enclosure is latched and any required inspection has happened.
Let dg(s) be the fewest skills needed to reach goal g from state s, and Tg(s, a) the predicted state after a valid skill a. A skill is optimal if it reduces the remaining path by exactly one step.
Several skills can satisfy that condition at the same state. The ranking term puts probability mass on the full set of optimal actions 𝒜*. With za as the network’s raw score for candidate a, the loss is the negative log of their combined softmax probability.
The training objective averages this term across the batch and adds a binary term weighted by 0.2. It averages softplus(−za) over optimal choices and softplus(za) over the other choices, then adds the two means.
Results
All three methods used the same 1,024 seeded MuJoCo resets. The planner replans after each skill. The fixed plan assumes all carriers start at feed, so it fails every already-loaded start.
| Test suite | Learned | Planner | Fixed plan |
|---|---|---|---|
| Novel goal combinations | 255 | 255 | 124 |
| Three goal carriers | 254 | 253 | 115 |
| Ordering constraints | 256 | 256 | 256 |
| Partial starts | 256 | 256 | 0 |
| Overall success | 99.7%1,021 / 1,024 | 99.6%1,020 / 1,024 | 48.3%495 / 1,024 |
Carrier seating failures
The transfer controller uses the measured grasp transform to align the carrier with the slot. A successful seat requires position error below 3.8 mm, rotation error below 0.14 rad (about 8°), and contact with the slot floor. The controller can make one guarded recentering pass before releasing the carrier.
The policy made zero invalid skill requests. All three failures were feed-slot seating failures. In one replay, a valid reseat action hit the slot wall at about 9.2° of rotation error.