Features › Simulate Robot

Simulate Robot

Simulate Robot runs an autonomous routine on your robot's own code, with simulated hardware, then plays it back on the field: where the robot drove, what each subsystem did and every command it ran, on one timeline you can scrub.

Simulate Robot playing back an auton
An auton played back: the robot on the field, its subsystems on the right, and each command on the timeline in its subsystem's colour.

Play back an auton

Pick the routine

Choose an auton, or any @RobotSimulationTest in the robot project.

Set the start

Drag the amber start marker, and turn it by its knob.

Simulate

Click Simulate Robot. Your code is built and run with simulated hardware.

Play or scrub

Press Play at 1×, 2× or 4×, or drag the playhead to any moment.

The start of the auton
Part way through the auton
The end of the auton

What the simulated robot does

Drives as your code drives

The same followers, paths and drive-to steps the real robot runs, from the start you set.

Sees with its cameras

Cameras see the game elements and AprilTags on the field, and tags in view correct where the robot thinks it is.

Runs camera zones

A zone that sees an element runs its script, and the script shows on the timeline.

Stays on the field

It keeps inside the walls and, when the drive asks it to, out of forbidden areas.

Shoots

Balls the robot fires are flown from its shot table and drawn landing, in or out.

Compares with the plan

Tick Planned Routes to draw each routine's plan as a ghost on the same clock.

Read the run

The timeline shows each command as a bar in the colour of the subsystem it uses. Point at one to see what it was and when it ran; Shift-drag or pinch to zoom in. Beside the field, sub-tabs show the same moment from different sides:

Sub-tabWhat it shows
SubsystemsEvery value each subsystem reports, actual against intended, with a trend line.
MotorsEach motor's speed and power and the battery over the run, zooming with the timeline.
CameraEach camera's picture of what it sees, its zones and the tags it reads.
TimingsHow long each part of each control loop took.

Sensors aren't simulated: a touch sensor reads not pressed and a distance sensor out of range for the whole run, unless the robot's RobotSimulation sets a reading.

Read the Simulate Robot guide