Work in progress. This library and its docs are new and still changing, and some parts are not yet tested on a real robot. If something is wrong or unclear,tell us with a short GitHub form.
The auto builder: odometry and Pedro
Build driveTo steps and Pedro paths on the field map, run them in the simulator, and copy the Java.
You need:
- The auto builder: The auto builder: steps.
- For
driveTosteps: odometry (Drive to points). - For a Pedro path: the Pedro add-on and the
follower(...)line (Add Pedro paths). What each path setting does is on that page.
In the auto builder
Section titled “In the auto builder”Open the auto builder (page 6). Pick the mode:
- Simple steps: the drives, turns and actions of page 6.
- Pedro path: a mecanum robot with odometry. Tap to add lines or curves. Drag the ends and the curve
points. Pick each part’s heading and speed limit. Tick Hold the end. Add things to start along the
path (
PathAt). The Java has afollowwith aPedroPath, or onedriveToper part.
The builder says when your robot cannot do a mode, and Run stays off:
- follow needs the
follower(...)line inRobot.java. - driveTo steps need only odometry.
The map in Pedro path mode, close up. The path has two parts: a straight line, then a curve:

- Drag the ends to move a part. Drag the control point to bend the curve. The robot does not drive through it: it pulls the curve toward it.
- Drag the heading knob to change which way the robot faces.
The settings for the path and each part:

Actions along the path are the PathAt lines: they start something while the robot drives.

A Pedro plan is one path. Add the steps before and after it in your file.
Done when
Section titled “Done when”- The builder runs your
driveTosteps or your Pedro path in the simulator, as BLUE and as RED. - The report says
donefor every point or path. - The Java is in your auto file, with the steps before and after it.
Problems
Section titled “Problems”| Problem | Why, and the fix |
|---|---|
| Run stays off in Pedro path mode | Robot.java has no follower(...) line (Add Pedro paths) |
| Run stays off for driveTo steps | Robot.java has no odometry(...) line (Add odometry) |
| A step or path ends in the wrong place | See the problems on Drive to points and Add Pedro paths |
Next: Advanced autos: beyond the auto builder.
Look it up: the auto builder, every detail.
Something wrong on this page? Tell us with a short GitHub form.