Action Builder and Trajectories
Build paths with the 1.0 builder model.
Build paths with the 1.0 builder model.
In this lesson, you will:
Road Runner action builders create drive actions from a start pose and a sequence of movement commands. The path should represent field strategy, not just cool-looking motion.
A trajectory action is a field plan in code. The robot must start where the code thinks it starts, avoid obstacles, and end ready for the next mechanism action.
Start with line and strafe commands, then turns, then splines. Keep path complexity proportional to localization confidence.
ActionBuilder.javaJava
Action path = drive.actionBuilder(startPose)
.lineToY(-36)
.turn(Math.toRadians(-90))
.strafeTo(new Vector2d(48, -36))
.build();If a path starts wrong, check start pose first. If it clips field elements, simplify geometry before increasing constraints.
Check your understanding before moving on.
Which result best demonstrates completion of “Action Builder and Trajectories”?
Why record the test setup, prediction, and observed result?
0 of 2 answered
Mark this lesson complete — “Custom Mechanism Actions” is up next.