Update sorting docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 18:57:14 +09:00
co-authored by Claude Opus 5.5
parent c99824db6b
commit b419f90bbf
8 changed files with 19 additions and 234 deletions
+5 -6
View File
@@ -1,8 +1,7 @@
# 01 Hardware facts for sorting # 01 Hardware facts for sorting
Every number the simulation or the policy depends on, with where it comes from. "M" is this repository, "T" is Every number the simulation or the policy depends on, with where it comes from. "M" is this repository, "T" is
`~/Dev/lumi-wave` on the Thor. Anything marked **to measure** must be measured before the phase that needs it `~/Dev/lumi-wave` on the Thor. Anything marked **to measure** is not known yet; until it is measured, the code uses a guess and says so.
([07_PLAN.md](07_PLAN.md)); a guess used meanwhile is written as a guess in the code.
--- ---
@@ -24,7 +23,7 @@ Every number the simulation or the policy depends on, with where it comes from.
| Other port quirks | replies sometimes belong to another command; `stop_program` may close without reply; no `motion_abort` | 04_ARM.md:319-326 | | Other port quirks | replies sometimes belong to another command; `stop_program` may close without reply; no `motion_abort` | 04_ARM.md:319-326 |
| Kinematics | fitted offline, match the controller within 0.2 mm / 0.05° (`data/arm_kinematics.json`) | T robot/kinematics.py:6-7 | | Kinematics | fitted offline, match the controller within 0.2 mm / 0.05° (`data/arm_kinematics.json`) | T robot/kinematics.py:6-7 |
| Servo mode | `servo_j` / `servo_p`, period = step_num × 8 ms; filters none / joint LPF / joint NLF / Cartesian NLF / MMF. Documented as supported on controller 1.7, **not yet on 3.2**. Not used by any code. `jkrc` on the Thor is x86-only | 04_ARM.md:35, 86, 109-114, 211-238; 08_NVIDIA_THOR.md:92 | | Servo mode | `servo_j` / `servo_p`, period = step_num × 8 ms; filters none / joint LPF / joint NLF / Cartesian NLF / MMF. Documented as supported on controller 1.7, **not yet on 3.2**. Not used by any code. `jkrc` on the Thor is x86-only | 04_ARM.md:35, 86, 109-114, 211-238; 08_NVIDIA_THOR.md:92 |
| **To measure** | controller version; whether servo mode is accepted over the JSON port; command-to-motion latency; tracking lag at 5–20 Hz targets; how a short `moveL` (10–30 mm) behaves when sent every 0.2–0.5 s | Phase 1 | | **To measure** | controller version; whether servo mode is accepted over the JSON port; command-to-motion latency; tracking lag at 5–20 Hz targets; how a short `moveL` (10–30 mm) behaves when sent every 0.2–0.5 s | on the robot |
### Mount and frames ### Mount and frames
@@ -56,7 +55,7 @@ For sorting the lift, waist and base stay still during a trial: the scene is fix
| Fitted | `FITTED = False` today (gripper off the flange since 2026-11-10) | T robot/gripper.py:22 | | Fitted | `FITTED = False` today (gripper off the flange since 2026-11-10) | T robot/gripper.py:22 |
| Current fingers (C-hooks) | gap open / closed: tips 100 / 73, belly 102 / 77, neck 57 / 30, shank 66 / 39 mm; hold 6–9 cm objects only | T robot/gripper.py:33; manipulation/skills.py:152 | | Current fingers (C-hooks) | gap open / closed: tips 100 / 73, belly 102 / 77, neck 57 / 30, shank 66 / 39 mm; hold 6–9 cm objects only | T robot/gripper.py:33; manipulation/skills.py:152 |
| Grasp point today | (106.4, −86.5, 230.5) mm in the flange frame, 137 mm off the flange axis | 10_GRIPPER.md:33 | | Grasp point today | (106.4, −86.5, 230.5) mm in the flange frame, 137 mm off the flange axis | 10_GRIPPER.md:33 |
| **New straight fingers: to measure** | tip gap open and closed (mm); finger length and width; grasp point in the flange frame (free-drive the tips onto a ball, read the flange pose, as done for the C-hooks); finger mass; material and friction against the ball; AI_1 reading closed on a ball and closed on nothing | Phase 0 | | **New straight fingers: to measure** | tip gap open and closed (mm); finger length and width; grasp point in the flange frame (free-drive the tips onto a ball, read the flange pose, as done for the C-hooks); finger mass; material and friction against the ball; AI_1 reading closed on a ball and closed on nothing | on the robot |
The 26 mm stroke decides the ball: open gap must clear the ball by ≥ 8 mm on each side for camera error, and The 26 mm stroke decides the ball: open gap must clear the ball by ≥ 8 mm on each side for camera error, and
the closed gap must be smaller than the ball. Example: open 58 mm, closed 32 mm suits a 40–45 mm ball. the closed gap must be smaller than the ball. Example: open 58 mm, closed 32 mm suits a 40–45 mm ball.
@@ -77,7 +76,7 @@ the closed gap must be smaller than the ball. Example: open 58 mm, closed 32 mm
| Colour | HSV; S ≥ 50 and V ≥ 60 kept; under 25 % kept → white / black / grey by V; else hue histogram (red wraps), argmax. Bounds red < 8, orange < 20, yellow < 33, green < 85, blue < 130, purple < 155, pink < 170 | T vision/objects.py:62-101 | | Colour | HSV; S ≥ 50 and V ≥ 60 kept; under 25 % kept → white / black / grey by V; else hue histogram (red wraps), argmax. Bounds red < 8, orange < 20, yellow < 33, green < 85, blue < 130, purple < 155, pink < 170 | T vision/objects.py:62-101 |
| Steady check | 8 frames 0.2 s apart, seen in ≥ 5, within 20 mm of the median | T manipulation/skills.py:89-93 | | Steady check | 8 frames 0.2 s apart, seen in ≥ 5, within 20 mm of the median | T manipulation/skills.py:89-93 |
| Position error | target ±1 cm; widths read ~8 mm small; shiny objects jump up to 17 mm | 15_PICK_AND_PLACE.md §9, 180, 274 | | Position error | target ±1 cm; widths read ~8 mm small; shiny objects jump up to 17 mm | 15_PICK_AND_PLACE.md §9, 180, 274 |
| **To measure** | detection rate of the chosen balls as `sports ball` on the plate and in the hand; colour reading for each ball colour under office light; position error on a ball at 5 plate positions (ruler); latency from a ball moving to `position_mm` changing | Phase 1 | | **To measure** | detection rate of the chosen balls as `sports ball` on the plate and in the hand; colour reading for each ball colour under office light; position error on a ball at 5 plate positions (ruler); latency from a ball moving to `position_mm` changing | on the robot |
The camera cannot see a ball inside the closed fingers reliably, and the arm hides the plate while it is above it. The camera cannot see a ball inside the closed fingers reliably, and the arm hides the plate while it is above it.
The policy must not depend on a fresh ball position after the grasp ([04](04_RL.md) §2). The policy must not depend on a fresh ball position after the grasp ([04](04_RL.md) §2).
@@ -98,7 +97,7 @@ The policy must not depend on a fresh ball position after the grasp ([04](04_RL.
| Isaac Sim | not supported on Jetson Thor (needs RT cores) | docs.isaacsim.omniverse.nvidia.com 5.1 requirements; DesignSpark Thor article | | Isaac Sim | not supported on Jetson Thor (needs RT cores) | docs.isaacsim.omniverse.nvidia.com 5.1 requirements; DesignSpark Thor article |
The Thor's driver (580.00) is below the documented minimum and Jetson is not listed: training on the Thor is a The Thor's driver (580.00) is below the documented minimum and Jetson is not listed: training on the Thor is a
spike to try, not the plan ([07_PLAN.md](07_PLAN.md) phase 3). thing to try; the other place is a cloud x86 machine with an RTX GPU.
--- ---
+3 -3
View File
@@ -69,8 +69,8 @@ SORT pressed
## 3. One policy episode ## 3. One policy episode
The policy starts with the hand above the plate (the `look` pose or a fixed "ready above plate" pose, chosen in The policy starts with the hand above the plate (the `look` pose or a fixed "ready above plate" pose, chosen when
phase 2) and the gripper open. It is given: the scene is built) and the gripper open. It is given:
- the ball's position (from the camera, refreshed while the ball is visible); - the ball's position (from the camera, refreshed while the ball is visible);
- the target box's position (from the layout file). - the target box's position (from the layout file).
@@ -106,4 +106,4 @@ These are deliberate limits for version 1. Each can be lifted later ([04](04_RL.
All in English and Korean, like every other skill: "Sorting the balls.", "Red ball to the red box.", "I couldn't All in English and Korean, like every other skill: "Sorting the balls.", "Red ball to the red box.", "I couldn't
pick up the blue ball.", "All sorted.". The app's texts live in `src/lib/i18n.tsx` (Lumi app rules); the robot's pick up the blue ball.", "All sorted.". The app's texts live in `src/lib/i18n.tsx` (Lumi app rules); the robot's
lines live with the skill. Exact wording is set in phase 6 ([06](06_INTEGRATION.md)). lines live with the skill. The exact wording is in the skill's code ([06](06_INTEGRATION.md)).
+6 -7
View File
@@ -11,7 +11,7 @@ on one engine's quirks. Both are built from the same robot description and the s
|---|---|---| |---|---|---|
| Role | training (PPO, thousands of parallel scenes) | sim-to-sim check, debugging, quick visual runs on the Mac | | Role | training (PPO, thousands of parallel scenes) | sim-to-sim check, debugging, quick visual runs on the Mac |
| Version | Isaac Lab 3.0, Newton physics on NVIDIA Warp (default install, Isaac Sim not required for headless training) | MuJoCo ≥ 3.14 (`sim/requirements.txt`) | | Version | Isaac Lab 3.0, Newton physics on NVIDIA Warp (default install, Isaac Sim not required for headless training) | MuJoCo ≥ 3.14 (`sim/requirements.txt`) |
| Runs on | NVIDIA GPU, Linux: cloud x86 RTX machine, or the Thor if the phase 3 spike works | Mac (CPU) and the Thor | | Runs on | NVIDIA GPU, Linux: cloud x86 RTX machine, or the Thor if Isaac Lab runs there | Mac (CPU) and the Thor |
| Robot from | URDF `sim/lumi_description/jaka_lumi.urdf` (arm chain only) + gripper model | `sim/lumi.xml` (already built from the same URDF) | | Robot from | URDF `sim/lumi_description/jaka_lumi.urdf` (arm chain only) + gripper model | `sim/lumi.xml` (already built from the same URDF) |
| Code | `rl/sorting/` | `sim/sorting/` | | Code | `rl/sorting/` | `sim/sorting/` |
@@ -26,7 +26,7 @@ do not move.
| Part | How | Check | | Part | How | Check |
|---|---|---| |---|---|---|
| Arm links and joints | URDF geometry and masses; joint limits with the code's 5° margin | joint angles from the fitted kinematics (`data/arm_kinematics.json`) give the same hand pose in sim within 1 mm at 20 random poses | | Arm links and joints | URDF geometry and masses; joint limits with the code's 5° margin | joint angles from the fitted kinematics (`data/arm_kinematics.json`) give the same hand pose in sim within 1 mm at 20 random poses |
| Arm control | joint position targets with stiff gains: the policy's hand move goes through IK to joint targets, like on the robot | step responses match the measured ones (phase 1 data): lag and overshoot | | Arm control | joint position targets with stiff gains: the policy's hand move goes through IK to joint targets, like on the robot | step responses match the measured ones (measured on the robot): lag and overshoot |
| Speed limits | 60 °/s per joint cap, linear speed cap of the trial speed; acceleration as measured | same cap numbers as `robot/motion.py` | | Speed limits | 60 °/s per joint cap, linear speed cap of the trial speed; acceleration as measured | same cap numbers as `robot/motion.py` |
| Gripper body | box with the Zimmer's outer size and 0.54 kg + fingers | from 10_GRIPPER.md | | Gripper body | box with the Zimmer's outer size and 0.54 kg + fingers | from 10_GRIPPER.md |
| Fingers | two straight boxes, the new fingers' length and width, friction from the material | open and closed tip gap equal the measured ones within 0.5 mm | | Fingers | two straight boxes, the new fingers' length and width, friction from the material | open and closed tip gap equal the measured ones within 0.5 mm |
@@ -42,8 +42,8 @@ Both simulators need the Zimmer with the new fingers instead. Steps:
1. Measure the new fingers ([01](01_HARDWARE_FACTS.md) §2). 1. Measure the new fingers ([01](01_HARDWARE_FACTS.md) §2).
2. Write the gripper as its own small URDF / MJCF (`zimmer_gep2013_straight`), attached at the flange with the 2. Write the gripper as its own small URDF / MJCF (`zimmer_gep2013_straight`), attached at the flange with the
measured offset. measured offset.
3. Isaac Lab imports URDF through its asset importer; check in the phase 2 spike whether the Newton-only install 3. Isaac Lab imports URDF through its asset importer. If the Newton-only install cannot import URDF directly, a USD
imports URDF directly or needs a USD made once on a machine with Isaac Sim. Keep the generated file in the repo. is made once on a machine with Isaac Sim and the generated file is kept in the repo.
--- ---
@@ -85,7 +85,7 @@ A rendered camera image is not needed for version 1. It comes in only with the v
| Setting | Start value | Note | | Setting | Start value | Note |
|---|---|---| |---|---|---|
| Physics step | 2 ms (MuJoCo now uses 2 ms) | small balls need small steps; check that a held ball does not jitter | | Physics step | 2 ms (MuJoCo now uses 2 ms) | small balls need small steps; check that a held ball does not jitter |
| Policy step | matches the real control rate chosen in phase 1 (mode A 10–20 Hz, mode B 2–4 Hz) | [04](04_RL.md) §3 | | Policy step | matches the real control rate measured on the robot (mode A 10–20 Hz, mode B 2–4 Hz) | [04](04_RL.md) §3 |
| Contacts | elliptic friction cones, soft contact on the ball | tune until grasp, roll and drop look like the real ball in a filmed test | | Contacts | elliptic friction cones, soft contact on the ball | tune until grasp, roll and drop look like the real ball in a filmed test |
| Gravity compensation | on for the arm (as in `sim/lumi.xml`) | the real controller compensates | | Gravity compensation | on for the arm (as in `sim/lumi.xml`) | the real controller compensates |
@@ -93,8 +93,7 @@ A rendered camera image is not needed for version 1. It comes in only with the v
## 6. Matching the real robot ## 6. Matching the real robot
These numbers in the simulation are replaced by measured ones in phase 1, and the measurement goes into These numbers in the simulation come from measurements on the robot ([05](05_SIM_TO_REAL.md) §1):
[08_EXPERIMENT_LOG.md](08_EXPERIMENT_LOG.md):
- arm step response (lag, overshoot, settle time) at the trial speed, for each control mode; - arm step response (lag, overshoot, settle time) at the trial speed, for each control mode;
- gripper stroke time and AI_1 on a held ball; - gripper stroke time and AI_1 on a held ball;
+2 -2
View File
@@ -47,7 +47,7 @@ teacher's "privileged" information ([§8](#8-teacher-and-student)).
The fingers point down with a fixed yaw. The hand target goes through the fitted inverse kinematics (the same The fingers point down with a fixed yaw. The hand target goes through the fitted inverse kinematics (the same
`robot/kinematics.py` the skills use) and the existing move checks (joint limits, head clearance) before it is sent. `robot/kinematics.py` the skills use) and the existing move checks (joint limits, head clearance) before it is sent.
Which arm command carries the target depends on what phase 1 finds: Which arm command carries the target depends on whether the controller accepts servo mode ([05](05_SIM_TO_REAL.md) §1):
| | Mode A: servo | Mode B: short moves | | | Mode A: servo | Mode B: short moves |
|---|---|---| |---|---|---|
@@ -67,7 +67,7 @@ Mode B works with the controller as it is today; the same environment code suppo
## 4. Reward ## 4. Reward
Dense terms guide early learning; the success bonus dominates once it is reached. Weights are starting values, Dense terms guide early learning; the success bonus dominates once it is reached. Weights are starting values,
tuned in phase 4 and written in the run record. tuned during training.
| Term | Formula (d = distance in m) | Weight | | Term | Formula (d = distance in m) | Weight |
|---|---|---| |---|---|---|
+2 -3
View File
@@ -64,8 +64,7 @@ The policy only proposes. Every step passes these before anything moves:
A refused step ends the episode as "unsafe" and is logged; the run does not continue around it. A refused step ends the episode as "unsafe" and is logged; the run does not continue around it.
Before the first real trial the collision sensitivity should be raised from the loose defaults (ROADMAP item, Before the first real trial the collision sensitivity should be raised from the loose defaults (10_GRIPPER.md:119): owner's decision.
10_GRIPPER.md:119): owner's decision.
--- ---
@@ -79,7 +78,7 @@ Before the first real trial the collision sensitivity should be raised from the
| 4 Full plate | 4 balls, 2 colours, 20 plates | ≥ 70 % fully sorted, none dropped outside | | 4 Full plate | 4 balls, 2 colours, 20 plates | ≥ 70 % fully sorted, none dropped outside |
| 5 Conditions | step 3 again with blinds open / closed and a moved table (± 2 cm) | within 10 points of step 3 | | 5 Conditions | step 3 again with blinds open / closed and a moved table (± 2 cm) | within 10 points of step 3 |
Each trial is filmed from a fixed phone position and logged ([08](08_EXPERIMENT_LOG.md)). Every failure gets a Each trial is filmed from a fixed phone position and logged. Every failure gets a
cause from a fixed list: missed grasp, slipped, dropped in carry, hit box rim, wrong box, perception (no or wrong cause from a fixed list: missed grasp, slipped, dropped in carry, hit box rim, wrong box, perception (no or wrong
reading), unsafe stop, timeout, other. reading), unsafe stop, timeout, other.
-117
View File
@@ -1,117 +0,0 @@
# 07 Plan
Phases in order. A phase is closed only by its check, written as a result in [08_EXPERIMENT_LOG.md](08_EXPERIMENT_LOG.md).
"Robot" means the owner is at the robot with STOP ready; everything else is done without moving it.
| Phase | Name | Robot needed | Depends on |
|---|---|---|---|
| 0 | Hardware and measurements | yes (no arm motion) | — |
| 1 | System identification | yes | 0 |
| 2 | Simulation scene and robot model | no | 0 (numbers), 1 (numbers, later) |
| 3 | Training setup (where Isaac Lab runs) | no | — (can run beside 0–2) |
| 4 | Teacher policy | no | 2, 3 |
| 5 | Student policy and sim-to-sim | no | 4 |
| 6 | Robot skill and app button | yes for tests | 1 (mode), can start beside 4 |
| 7 | Real trials | yes | 5, 6 |
| 8 | Write-up and portfolio | no | 7 |
---
## Phase 0: Hardware and measurements
| Task | Output |
|---|---|
| Fit the Zimmer with the new straight fingers; set `FITTED = True` | gripper on the robot |
| Measure the tip gap open and closed, finger length, width, mass, material | numbers in [01](01_HARDWARE_FACTS.md) §2 |
| Teach the new grasp point (free-drive tips onto a ball, read the flange pose) | grasp point in the flange frame |
| Measure the balls: diameter, mass, colours; pick 2 colours (red, blue) | numbers in [02](02_TASK_DESIGN.md) §1 |
| Choose boxes and plate; tape the layout; measure positions with the arm (touch each corner, read the hand position) | `data/sort_layout.json` |
| AI_1 closed on a ball and on nothing, 10 each | thresholds for "holding" |
**Check:** a close on a ball held by hand gives an AI_1 clearly between open and shut-on-nothing; the open gap
clears the ball by ≥ 8 mm each side.
## Phase 1: System identification
| Task | Output |
|---|---|
| Read the controller version; test servo mode over the JSON port (5 s small motion on J6, STOP ready) | mode A or B decided |
| Step responses in the chosen mode ([05](05_SIM_TO_REAL.md) §1) | `rl/sorting/sysid/*.csv`, fitted lag and delay |
| Gripper strokes ×40 | stroke time, spread |
| Camera on balls: detection rate, colour reading, bias and noise at 5 positions | perception numbers |
| Ball bounce and roll films | contact numbers |
**Check:** a script replays the recorded commands in MuJoCo and the simulated joint angles follow the recorded
ones within the measured noise; the colour rule reads both chosen colours right in ≥ 95 % of readings.
## Phase 2: Simulation scene and robot model
| Task | Output |
|---|---|
| Gripper model with the new fingers (URDF + MJCF), attached at the measured offset | `sim/sorting/zimmer_straight.*` |
| MuJoCo sorting scene: table, plate, boxes, balls at measured values; fixed column and head bodies | `sim/sorting/scene.xml` |
| A scripted (not learned) pick and place in MuJoCo using IK, to prove the scene can be solved | `sim/sorting/scripted_demo.py`, a video |
| Same robot and scene in Isaac Lab (import route decided in phase 3) | `rl/sorting/assets/` |
| Kinematics check: fitted kinematics vs both simulators at 20 poses | ≤ 1 mm |
**Check:** the scripted pick and place sorts 4 balls in both simulators; kinematics match.
## Phase 3: Training setup
| Task | Output |
|---|---|
| Spike, half a day at most: install Isaac Lab 3.0 (Newton, no Isaac Sim) on the Thor in a separate venv or the nvcr PyTorch container; run a stock manipulation example headless for 10 minutes | works or the exact error |
| If the Thor fails: pick a cloud x86 machine with an RTX GPU (price per hour noted), install Isaac Lab there; data transfer by git + rsync | training machine ready |
| Run a stock Isaac Lab reach or lift task to completion | baseline speed: steps per second at 4096 scenes |
The Thor runs the robot (LLM, whisper, vision). Training on it only happens when nobody uses Lumi, and never during
a demo.
**Check:** a stock example trains to its documented reward on the chosen machine.
## Phase 4: Teacher policy
| Task | Output |
|---|---|
| Environment: observations, actions (mode from phase 1), rewards, resets, curriculum ([04](04_RL.md)) | `rl/sorting/env/` |
| Unit tests: reward terms, resets, gripper stroke model, workspace limits | `rl/sorting/tests/` |
| Train the teacher, 3 seeds; tune rewards one change at a time, each a logged run | runs in [08](08_EXPERIMENT_LOG.md) |
**Check:** teacher ≥ 95 % on the randomised set ([04](04_RL.md) §10).
## Phase 5: Student policy and sim-to-sim
| Task | Output |
|---|---|
| Student with robot-only observations and memory; DAgger from the teacher, then PPO fine-tune | student policy |
| Ablations: no randomisation / no sensor model / no teacher (direct PPO on student obs) | table of success rates |
| Export to ONNX; parity test: ONNX and PyTorch outputs equal for 1000 recorded inputs | `policy.onnx`, `config.json`, `obs.py` |
| Run the student in MuJoCo | MuJoCo success |
**Check:** student ≥ 90 % in Isaac Lab randomised, ≥ 85 % in MuJoCo.
## Phase 6: Robot skill and app button
| Task | Output |
|---|---|
| `manipulation/sort.py`, `policies/sort/`, endpoints, `robot/servo.py` if mode A ([06](06_INTEGRATION.md)) | Thor code |
| Tests with the arm faked: observation parity, refusals, STOP | `tests/test_sort.py` passes |
| App SORT tile, texts EN + KO, status counts | Lumi app change |
**Check:** dry run on the robot ([05](05_SIM_TO_REAL.md) §5 step 1) passes; STOP ends a run within 0.5 s.
## Phase 7: Real trials
Steps 2–5 of [05](05_SIM_TO_REAL.md) §5, with every trial filmed and logged, failures classified, fixes in
simulation and retrained when needed ([05](05_SIM_TO_REAL.md) §6).
**Check:** the success criteria in [README](README.md).
## Phase 8: Write-up and portfolio
| Task | Output |
|---|---|
| Results page: method, numbers sim vs sim vs real, ablations, failures and what fixed them | [08](08_EXPERIMENT_LOG.md) final section |
| Side-by-side video: Isaac Lab, MuJoCo, real robot, same ball positions | 60–90 s video |
| Short technical summary (one page) for the CV and interviews | PDF |
| Clean public code (no private data, no addresses, no passwords) | repository section |
-81
View File
@@ -1,81 +0,0 @@
# 08 Experiment log
Every measurement, training run and real trial session is recorded here, newest at the bottom of its table. The
raw files live next to the code (`rl/sorting/runs/`, `rl/sorting/sysid/`, Thor `logs/sort/`); this page holds the
numbers and the conclusions.
---
## 1. Naming
| Thing | Name | Example |
|---|---|---|
| Training run | `<date>_<phase>_<short change>_s<seed>` | `2026-12-03_teacher_lift-reward-2x_s1` |
| Sysid session | `<date>_sysid_<what>` | `2026-11-28_sysid_modeB-steps` |
| Real session | `<date>_real_<step>` | `2026-12-15_real_one-ball-anywhere` |
A run record says: git commit, machine, config file, what changed from the previous run and why, the result, and
what was decided because of it.
---
## 2. Metrics
| Metric | Definition |
|---|---|
| Success | ball at rest inside the target box, gripper open, within 15 s |
| Drop rate | ball left the hand outside the target box |
| Wrong box | ball at rest in the other box |
| Missed grasp | close ended without the ball (AI_1 near shut-on-nothing) |
| Unsafe stop | a safety check refused a step |
| Time to success | from episode start to success, successful episodes only |
| Smoothness | mean action-rate cost per episode |
| Real-to-sim gap | MuJoCo success − real success, same ball positions |
Success rates are given with the number of trials and a 95 % interval (Wilson), e.g. "41 / 50 = 82 % (69–90 %)".
---
## 3. Measurements
| Date | Session | Result | Used for |
|---|---|---|---|
| | | | |
## 4. Training runs
| Run | Change | Isaac Lab success (randomised) | MuJoCo success | Decision |
|---|---|---|---|---|
| | | | | |
## 5. Ablations
| Variant | Isaac Lab | MuJoCo | Real (if tried) |
|---|---|---|---|
| Full method | | | |
| No domain randomisation | | | |
| No sensor model | | | |
| No teacher (direct PPO on robot observations) | | | |
## 6. Real trial sessions
| Session | Policy run | Trials | Success | Failures by cause | Notes |
|---|---|---|---|---|---|
| | | | | | |
---
## 7. Portfolio checklist
What a robotics learning team asks about, and where this project answers it:
| Topic | Evidence |
|---|---|
| Simulation and environment design | Isaac Lab environment, MuJoCo twin, robot and gripper models ([03](03_SIMULATION.md)) |
| RL formulation | observations, actions, reward, curriculum ([04](04_RL.md)) |
| Domain randomisation from measured ranges | sysid data and the ranges table |
| Privileged teacher and student distillation | phase 5 runs and the ablation |
| Sim-to-sim and sim-to-real gap, measured | sections 4–6 above |
| Deployment on an embedded computer | ONNX policy on the Jetson Thor, timing logs |
| Safety in a real system | envelope, STOP, refusal logs ([05](05_SIM_TO_REAL.md) §4) |
| Engineering | tests, reproducible runs, seeds, this log |
+1 -15
View File
@@ -20,8 +20,6 @@ the red box, blue ball to the blue box, arm back to rest.
| 04 | [Reinforcement learning](04_RL.md) | Observations, actions, rewards, resets, curriculum, randomisation, PPO, teacher and student | | 04 | [Reinforcement learning](04_RL.md) | Observations, actions, rewards, resets, curriculum, randomisation, PPO, teacher and student |
| 05 | [Sim to real](05_SIM_TO_REAL.md) | System identification, sim-to-sim check, running the policy on the Thor, safety envelope, real tests | | 05 | [Sim to real](05_SIM_TO_REAL.md) | System identification, sim-to-sim check, running the policy on the Thor, safety envelope, real tests |
| 06 | [Integration](06_INTEGRATION.md) | The robot skill (`/skills/sort`), its state, the app's SORT button, STOP | | 06 | [Integration](06_INTEGRATION.md) | The robot skill (`/skills/sort`), its state, the app's SORT button, STOP |
| 07 | [Plan](07_PLAN.md) | Phases, tasks, deliverables and the check that closes each phase |
| 08 | [Experiment log](08_EXPERIMENT_LOG.md) | How runs are named and recorded; metrics; the results table; what goes into the portfolio |
--- ---
@@ -79,18 +77,6 @@ The real success rates are what the project is judged by. Simulation numbers alo
--- ---
## Open questions
| Question | Blocks | Owner of the answer |
|---|---|---|
| New fingers: open and closed gap at the tips, finger length, material, mass | Gripper model, grasp reward | Owner (measuring) |
| Balls: diameter, mass, colours available, how hard | Scene, colour test | Owner (measuring) |
| Arm controller version; does it accept `servo_j` / `servo_p` | Control mode A or B ([04](04_RL.md) §3) | Phase 1 test |
| Does Isaac Lab 3.0 (Newton, no Isaac Sim) train on the Thor | Where training runs | Phase 3 spike |
| Box size and placement on the table | Scene | Owner |
---
## Where the code will live ## Where the code will live
| What | Where | | What | Where |
@@ -99,4 +85,4 @@ The real success rates are what the project is judged by. Simulation numbers alo
| MuJoCo twin of the sorting scene | `sim/sorting/` (new; reuses `sim/lumi.xml`) | | MuJoCo twin of the sorting scene | `sim/sorting/` (new; reuses `sim/lumi.xml`) |
| Robot skill and policy runtime | `real/thor/manipulation/sort.py`, `real/thor/policies/sort/` (deployed to `~/Dev/lumi-wave` on the Thor) | | Robot skill and policy runtime | `real/thor/manipulation/sort.py`, `real/thor/policies/sort/` (deployed to `~/Dev/lumi-wave` on the Thor) |
| App button | Lumi app, COMMANDS → ARM & OBJECTS | | App button | Lumi app, COMMANDS → ARM & OBJECTS |
| Run records and plots | `rl/sorting/runs/` (large files kept off git) and [08_EXPERIMENT_LOG.md](08_EXPERIMENT_LOG.md) | | Run records and plots | `rl/sorting/runs/` (large files kept off git) |