Skip to content

From Sim to Real and Back: A Physics Simulator for FIRST Tech Challenge

This research introduces an open-source physics simulator designed for FIRST Tech Challenge (FTC) robots that explicitly models the control stack between robot code and motors, including REV hub firmware loops, hardware call latencies, and battery sag. By running teams' unmodified robot code against these realistic constraints alongside ODE4j rigid-body physics at a 1 ms step, the tool aims to close the performance gap often found in existing simulators that ignore motor response timing. The simulator supports JSON or CAD imports, renders webcam frames for AprilTag processing, and allows game packs to be swapped per season, with current hardware call costs estimated at 10.5 ms for a standard TeleOp loop under default conditions.

Article text · Original source

arXiv:2612.00691v1 Announce Type: new Abstract: For low-cost robots such as those of FIRST Tech Challenge (FTC), we argue that much of the gap between simulation and the real robot lies in the control stack between robot code and motors, not in the rigid-body dynamics. Motor velocity and position loops run in the REV hub's firmware, and every hardware call takes time, so code tuned in a simulator that leaves these out can meet a different loop rate and motor response on the robot. None of the FTC simulators we found documents a model of either. We present an open-source simulator that runs teams' own robot code, compiled unmodified, against models of the hub's firmware control loops, the time each hardware call takes and battery sag, over ODE4j rigid-body physics at a 1 ms step. At the default call costs, for example, one mecanum TeleOp loop (four encoder reads, an IMU read, four motor writes) is charged 10.5 ms, or 7.5 ms with bulk reads. Robots are described in JSON or imported from CAD, webcam frames are rendered for FIRST's own AprilTag processor, and each season's game is a replaceable pack. The call costs are still estimates, to be measured in a planned comparison with a physical robot.

Source notes

  1. From Sim to Real and Back: A Physics Simulator for FIRST Tech Challenge↩
Source evidence

Reported by the source; not independently verified.

Environment
Simulation[2]
code
Reported pending[3]
  1. From Sim to Real and Back: A Physics Simulator for FIRST Tech Challenge
    Exact source↩
  2. t can meet a different loop rate and motor response on the robot. None of the FTC simulators we found documents a model of either. We present an open-source simulator that runs teams' own robot code, compiled unmodified, against models of the hub's firmware control loops, the time each hardware call takes and battery sag, over ODE4j rigid-body physics at a 1 ms step. At the default call costs, for example, one mecanu
    Exact source↩
  3. m TeleOp loop (four encoder reads, an IMU read, four motor writes) is charged 10.5 ms, or 7.5 ms with bulk reads. Robots are described in JSON or imported from CAD, webcam frames are rendered for FIRST's own AprilTag processor, and each season's game is a replaceable pack. The call costs are still estimates, to be measured in a planned comparison with a physical robot.
    Exact source

Automatically extracted; no manual editorial approval recorded.

Article details
Signal

The authors propose an open-source simulator that models REV hub firmware control loops and hardware call latencies to bridge the sim-to-real gap for FTC robots, though specific call costs remain estimates pending physical validation.

Timezone · UTC

Article dates follow your selected timezone. Briefing editions use Hong Kong time (UTC+8).