Test, Diagnose, and Hand Off
Mediumdifficulty
Validate in five stages
| Stage | What to test | Exit criterion |
|---|---|---|
| Software | Event solver, selector oracle, bounded interpolation, frame signs, and solver status | Known cases pass and optimized selection matches exhaustive selection. |
| Bench | Wheel tracking, hood repeatability, recovery, and feeder delay | Ready bands and delay come from synchronized measurements. |
| Stationary field | Randomized distance sweep with untouched validation balls | Entry and retention meet a declared target across the calibrated range. |
| Controlled motion | Alternate compensation OFF and ON inside speed and direction blocks | Motion improves entry without changing zero-velocity behavior. |
| Competition | Entry, retention, gate rejections, and release-state telemetry | Failures can be assigned to geometry, retention, calibration, state estimation, or readiness. |
Use the paper as a worked validation record
| Record | Target entries | Retained scores | Interpretation |
|---|---|---|---|
| Initial development calibration | 70/100 | Not separately reported here | Sequential baseline |
| After make-window calibration | 93/100 | Not separately reported here | Integrated workflow result |
| Solo operational record | 94/97 | 84/97 | 10 bounce-outs and 3 geometric misses |
| Selected complete MTI match | 105/110 | 101/110 | 4 bounce-outs and 5 geometric misses |
The jump from 70/100 to 93/100 is 23 percentage points (95% interval: 12.5 to 33.2 points, paper §§7–8). Several things changed between those two tests, so it doesn't show which change helped.
The moving-shot test is stronger evidence, because compensation was switched on and off in alternation at each speed: 54/60 with it versus 30/60 without. The previous lesson has the full table.
The MTI match is one match, so 105/110 is a good result, not a prediction for every match. And the model doesn't predict whether a ball stays in after it hits the goal.
Let the failure category choose the next experiment
In the solo run, 10 of the 13 shots that didn't count had actually gone in and bounced out. Adjusting the simulated opening can't fix that. The paper suggests measuring spin with marked balls and studying how balls hit the goal as next steps.
| Observed failure | Inspect next |
|---|---|
| Repeatable front/back miss while stationary | release speed/angle, distance reference, systematic map error |
| Good stationary shots, misses during motion | velocity frame, delay, TOF range, acceleration and solver residual |
| Entry followed by bounce-out | spin, entry velocity, impact geometry and retention |
| First shot works, rapid next shot fails | wheel recovery, feeder timing and actual release readiness |
| Simulation looks precise but video disagrees | camera calibration, units and physical model assumptions |
The camera tests measured the wheel-to-ball ratio, not drag. And the simulator matching another solver shows the code is right, not that the physics assumptions are.
Model-guided shot or two empirical LUTs?
A model narrows down what to test before you go to the field. The purely experimental approach puts the robot at many distances, tries lots of wheel and hood settings, and keeps what works. Both end up with the same two tables, and shooting on the move needs a flight-time table either way.
Compare the complete workflows
The experimental method still needs a clear definition of success, enough repeats to tell settings apart, a way to fill in between distances, and test shots you didn't tune with. The model-based method still needs real shots, because the physics model can't predict wheel slip, ball squish, motor response, or wear.
Start with the default 15 distance stations. Increase the empirical candidate pairs from 9 to 15, then increase the repeats. Watch the multiplication. Next increase the model-guided local pairs: a weak model or changed mechanism also expands the physical search.
- simulate scoring speed-angle commands
- rank each command's perturbation box
- test a local set of wheel-hood corrections
- store the final two actuator LUTs
- choose a grid of target distances
- sweep candidate wheel-hood pairs
- repeat and rank physical outcomes
- store wheel and hood versus distance
This planner counts launches; it does not predict scoring probability. The model-guided lane assumes seven setup launches and a smaller local candidate set after simulation. Those are editable teaching assumptions, not a measured head-to-head experiment from the paper. Setup changes, failed feeds, warm-up shots, and retests would add to both totals.
Worked example: 307 versus 750 planned launches
The default teaching plan uses 15 distance stations, five repeats per candidate pair, and five held-out validation shots per station.
For a model-guided local search with three physical correction pairs per station plus seven setup launches:
For a nine-pair empirical sweep at every station:
These are planning numbers from assumptions you can change in the demo. The paper didn't run this comparison, so it doesn't show which method ends up more accurate, only how many shots each takes.
What each method knows
| Question | Robust model + calibration | Dense empirical two-LUT campaign |
|---|---|---|
| How is a candidate proposed? | Drag-aware rim event and perturbation coverage identify promising exit speed and angle. | Physical wheel-hood pairs are swept at each distance. |
| What gets deployed? | Calibrated distance-to-wheel and distance-to-hood maps. | Distance-to-wheel and distance-to-hood maps. |
| Main data burden | Transfer identification, local corrections, repeats, and held-out validation. | Distance stations × candidate pairs × repeats, then held-out validation. |
| Strong diagnostic | Separates flight geometry from launcher transfer and exposes sensitivity around a command. | Directly includes unmodeled contact, spin, wear, and assembly effects present during testing. |
| Main failure mode | Wrong drag, geometry, transfer, or perturbation assumptions can narrow the search around the wrong region. | Sparse or noisy trials can select a lucky pair; the tables conflate every source of error. |
| Outside the measured range | Recompute, recalibrate, and validate. | Add stations and validate. Do not extrapolate. |
| Runtime cost | Two LUT queries after offline selection and calibration. | Two LUT queries. |
On the robot they're equally simple. The model helps before that, by cutting down what you have to test and showing why some shots are fragile. The experimental method's strength is that it measures the actual robot.
Build two empirical tables without fooling yourself
- Choose distance stations before shooting. Cover the intended range and add stations near mechanical regime changes. Record the true shooter-to-front-lip geometry.
- Define the candidate search. Sweep paired flywheel and hood commands. Changing one variable at a time can miss an interaction, while a full rectangular sweep can become expensive.
- Randomize and repeat. Interleave candidate pairs so battery state, wheel temperature, ball wear, and operator rhythm do not align with one command.
- Separate outcomes. Record geometric entry, bounce-out, and retained score. A hood pair that enters reliably but bounces out is a different problem from a geometric miss.
- Select with uncertainty visible. Keep counts, not only percentages. Five of five is less information than 45 of 50 even though both display 100%.
- Fit and verify shape-preserving tables. Check every interval for overshoot. Record out-of-range queries explicitly; a clamped value is not a calibrated shot at the requested distance.
- Validate on untouched launches. Do not report the same trials used to choose a command as evidence that the chosen command generalizes.
You can save shots by testing a coarse grid first, then only filling in around the settings that looked good. Record every setting you tried so someone can see how you narrowed it down.
A practical hybrid
For this launcher, the strongest workflow is usually hybrid:
- use the drag-aware event map to reject impossible and fragile speed-angle regions;
- translate the selected region into initial wheel-hood commands with transfer measurements;
- run a local empirical sweep at representative distances;
- build the two actuator LUTs with monotone interpolation;
- validate fixed-distance and moving shots with held-out balls and randomized order;
- expand the empirical search whenever residuals, ball changes, or mechanism changes show the model prior is no longer adequate.
The simulator does what it's good at, ruling out bad shots before testing, and real shots do the part only real shots can.
Java: a transparent two-LUT deployment
LauncherCommand empiricalCommand(double distanceInches) {
if (!Double.isFinite(distanceInches)) return LauncherCommand.invalid();
double usedDistance = clamp(distanceInches, MIN_CAL_DISTANCE, MAX_CAL_DISTANCE);
double wheelTicks = wheelLut.get(usedDistance);
double hoodPosition = hoodLut.get(usedDistance);
return new LauncherCommand(
wheelTicks,
hoodPosition,
usedDistance != distanceInches // expose clamping to the caller
);
}
The code is short on purpose. The hard work is in the testing that produced the table, the interpolation between its values, and the checks that show where you can trust it.
A team tests 12 distance stations, 8 wheel-hood pairs per station, and 6 repeats per pair. It then reserves 10 held-out validation shots at each station. How many physical launches are planned? Tuning uses launches. Validation uses . The total is 696 launches, before warm-up shots, failed feeds, or retests.Show solution
A reproducible handoff to the next team
Hand over the tables with their units and valid ranges, the code commit, the simulator settings, the controller settings, how the feeder delay was measured, and what counted as a made shot. Keep the raw shot counts, and keep tuning shots separate from test shots.
Also write down the coordinate frame and sign conventions, what happens at the edges of each table, the full set of firing checks, and the problems you already know about. A table of final numbers without that is hard to check and easy to misuse on the next robot.
For moving shots, log the pose, velocity, acceleration, aim distance, aim steps, wheel speed asked for and measured, hood setting, and when the ball actually left, all with matching timestamps. The paper's moving-shot data doesn't have this per-shot detail, and it would make diagnosing misses much easier.
The simulator code is public, but the paper's raw experiment archive isn't included here yet.
Sources: final paper §§7–11 and the versioned source map.