09 / Setup and Tuning
Road Runner 1.0 Install and Drive Class
Set up Road Runner 1.0 and understand the generated drive/localizer structure.
09 / Setup and Tuning
Set up Road Runner 1.0 and understand the generated drive/localizer structure.
You will
This lesson is about planned robot motion using Road Runner 1.0. Students should understand that trajectories depend on tuning, localization, starting pose, and action composition. Road Runner is powerful, but it only works as well as the robot model underneath it.
The new Road Runner docs at rr.brott.dev describe a 1.0 API with actions, drive classes, and tuning tools. This curriculum should avoid older 0.5 assumptions and teach the current mental model.
The drive class owns pose estimation and trajectory following. Mechanisms should call into autonomous actions rather than cluttering the drive class with subsystem logic.
Use small validation steps: create the drive, set the start pose, run a short action, validate localization, then add more complex paths. Mechanisms and vision should be composed as actions only after the drive path works alone.
For this specific lesson, students should first restate the goal in robot terms, then identify the value or behavior they expect to observe, then run the smallest test that proves the idea. The lesson should feel like a guided lab: predict, run, observe, explain, and only then extend.
AutoDriveStart.java · Java
MecanumDrive drive = new MecanumDrive(hardwareMap, new Pose2d(0, 0, 0));
Action trajectory = drive.actionBuilder(new Pose2d(0, 0, 0))
.lineToX(24)
.turn(Math.toRadians(90))
.build();
waitForStart();
if (opModeIsActive()) {
Actions.runBlocking(trajectory);
}Road Runner failures should be separated into layers. If pose is wrong, fix localization. If straight motion is wrong, revisit tuning. If the path is risky, simplify or preview it. If the full auto fails, inspect the selected branch, active action, pose, mechanism state, and finish condition.
Check your understanding
Which docs should this curriculum use for Road Runner?
0 of 1 answered
References
Finished reading?
You'll move on to “Feedforward Tuning” next.