Skip to main content

Build a Robust Moving Shooter

Quantum Robotics launcher on the competition field, with a purple projectile in flight
The Quantum Robotics launcher in competition. Team archive photograph reproduced from Figure 1 of the research paper.
A note from Eric

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.

  1. 01Model one shot

    Exit speed and angle become a descending rim crossing and flight time.

  2. 02Classify entry

    The ball’s center must clear both the front and rear lips.

  3. 03Search nearby commands

    Choose a scoring command that survives the largest declared error box.

  4. 04Calibrate hardware

    Convert the selected release state into wheel, hood, and time-of-flight tables.

  5. 05Compensate motion

    Shift a virtual target using robot velocity, release delay, and flight time.

  6. 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.

LevelBuildWhat it gives the team
Reliable static shootermeasured wheel and hood tables, flight-time table, interpolation, readiness gaterepeatable stationary releases and the data required by later stages
Shoot while movingfield-frame velocity, virtual-target iteration, convergence and range statusaim correction for inherited chassis motion
Model-guided selectiondrag-aware flight solver, geometric entry test, bounded make-window searchfewer 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​

  1. 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.
  2. Choose a Shot with Error Margin. Produce an offline selector that compares nearby speed-angle commands and exports the most tolerant eligible command.
  3. Convert the Model into Robot Commands. Produce bounded wheel, hood, and flight-time tables plus a measured release-readiness gate.
  4. Compensate for Robot Motion. Produce a virtual target and status object from shooter pose, target pose, chassis velocity, release delay, and flight time.
  5. 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​

StageInput → outputExecution boundary
Flight modelexit speed and angle → descending rim event and flight timeoffline simulator
Robust selectionevent map and target distance → tolerant nominal release stateoffline simulator
Calibrationrelease state and physical trials → wheel, hood, and TOF table knotspit and practice field
Motion compensationpose, velocity, and TOF → virtual target and solver statusevery robot loop
Actuationtable targets → flywheel, hood, turret, and feeder commandsevery robot loop
Validationphysical launches → entered, bounced out, or missedlogged 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​

QuantityWhy it cannot be copied
release position and target geometrymounting and field references change the flight problem
usable speed-angle envelopewheel, hood, ball, and motor limits differ
distance-to-wheel and distance-to-hood knotsactuator commands are robot-specific
distance-to-flight-time knotsmotion compensation depends on the actual release-to-entry event
wheel and hood ready bandsrecovery, sensing, and acceptable shot error differ
release delayfeeder timing changes the inherited displacement
velocity frame and signone frame or sign mistake leads the target in the wrong direction
inheritance gainprojectile-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.

Three different questions

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.