Build a Robust Moving Shooter

I built this launcher system and wrote the paper it's based on. The paper has the full model and results. These lessons explain the choices in the order an FTC team would need them. Measure everything again on your own robot, keep the safety checks, and treat every number here as a starting point.
The whole shooter in one pass
The robot launches a light ball with holes in it through a raised opening. A perfect calculation isn't enough: balls vary, the launcher doesn't pass all of the wheel's speed to the ball, the robot moves, and a ball that goes in can still bounce out.
- 01Model one shot
Exit speed and angle become a descending rim crossing and flight time.
- 02Classify entry
The ball’s center must clear both the front and rear lips.
- 03Search nearby commands
Choose a scoring command that survives the largest declared error box.
- 04Calibrate hardware
Convert the selected release state into wheel, hood, and time-of-flight tables.
- 05Compensate motion
Shift a virtual target using robot velocity, release delay, and flight time.
- 06Gate and validate
Release only from a valid solution and diagnose entry separately from retention.
The first three steps happen ahead of time on a laptop. The robot doesn't simulate thousands of shots in its loop. It looks up values in measured tables, adjusts the aim for motion, controls the mechanism, checks that everything's ready, and fires.
Adopt the system in layers
You don't need the whole system to get something useful.
| Level | Build | What it gives the team |
|---|---|---|
| Reliable static shooter | measured wheel and hood tables, flight-time table, interpolation, readiness gate | repeatable stationary releases and the data required by later stages |
| Shoot while moving | field-frame velocity, virtual-target iteration, convergence and range status | aim correction for inherited chassis motion |
| Model-guided selection | drag-aware flight solver, geometric entry test, bounded make-window search | fewer physical candidates and an explanation of why one command is less fragile than another |
If you need results soon, start with the stationary shooter. Add shooting on the move only once your pose, velocity, feeder delay, and flight times are reliable. Add the physics model when you want to cut down on test shots or understand why some settings are more forgiving than others.
Five lessons, five things to build
- Build the Offline Flight Model. Produce a function that maps exit speed, angle, and geometry to a descending rim crossing, entry velocity, and time of flight.
- Choose a Shot with Error Margin. Produce an offline selector that compares nearby speed-angle commands and exports the most tolerant eligible command.
- Convert the Model into Robot Commands. Produce bounded wheel, hood, and flight-time tables plus a measured release-readiness gate.
- Compensate for Robot Motion. Produce a virtual target and status object from shooter pose, target pose, chassis velocity, release delay, and flight time.
- Test, Diagnose, and Hand Off. Produce a staged test record that separates geometric misses, bounce-outs, mechanism recovery, and motion-compensation failures.
The first two lessons share the paper's 70-inch (1.778 m) front-lip distance and selected 5.25 m/s, 58° worked command. Every experiment has a reset action that returns to its worked example.
Know what belongs offline and on the robot
| Stage | Input → output | Execution boundary |
|---|---|---|
| Flight model | exit speed and angle → descending rim event and flight time | offline simulator |
| Robust selection | event map and target distance → tolerant nominal release state | offline simulator |
| Calibration | release state and physical trials → wheel, hood, and TOF table knots | pit and practice field |
| Motion compensation | pose, velocity, and TOF → virtual target and solver status | every robot loop |
| Actuation | table targets → flywheel, hood, turret, and feeder commands | every robot loop |
| Validation | physical launches → entered, bounced out, or missed | logged test and match data |
A list of ideal ball speeds and angles isn't a motor table. The measured launcher tables account for wheel slip, ball squish, surface wear, motor response, and mechanism geometry, none of which the flight model knows about.
Prerequisites for full understanding
To build it you need basic Java, vectors and coordinate frames, consistent units, interpolation, and timestamped logging. The full derivations also use differential equations, numerical integration (RK4), curve fitting, optimization, and repeated-estimate methods. You need those to reproduce the math, but each lesson lists the inputs, outputs, and tests you'd need to build that stage with a library instead.
Before motion compensation, complete measured loop timing, feedforward, and the pose-estimation contract.
Remeasure these values on every launcher
| Quantity | Why it cannot be copied |
|---|---|
| release position and target geometry | mounting and field references change the flight problem |
| usable speed-angle envelope | wheel, hood, ball, and motor limits differ |
| distance-to-wheel and distance-to-hood knots | actuator commands are robot-specific |
| distance-to-flight-time knots | motion compensation depends on the actual release-to-entry event |
| wheel and hood ready bands | recovery, sensing, and acceptable shot error differ |
| release delay | feeder timing changes the inherited displacement |
| velocity frame and sign | one frame or sign mistake leads the target in the wrong direction |
| inheritance gain | projectile-platform coupling must be identified and validated |
Freeze the source before comparing results
The simulator snapshot used by the paper is
09663d68.
Its backend/physics.py and backend/verify.py match the SHA-256 hashes printed in the final paper. The
paper's older decode_sim/decode_sim directory reference now corresponds to backend/.
The reported season results belong to robot revision 75db349d, frozen by paper section 6. The newer 8374312f robot snapshot has different tables, radial and lateral motion weights, and an RST controller enabled by default. The lessons explain those changes without assigning the season's measured outcomes to untested newer settings.
Does the code solve the equations correctly? Does the real ball go through the opening? Does it stay in? A ball that bounces out still went in, and the flight model doesn't simulate what happens after it hits the goal.
Research paper and source
Eric Stoicescu, Robust Drag-Aware Launch Planning and Shoot-on-the-Move Compensation for a Competition Mobile Robot, technical manuscript, 2026.
The code is public: the trajectory simulator and the season robot code at commit 75db349d. The paper hasn't been peer reviewed. The raw experiment data it describes isn't published here, so you can read the code and methods but can't re-run every physical test from this site.