Software

RoboRoute

A route planner for VEX autonomous routines. You click waypoints on a to-scale field and it writes the LemLib code.

  • Role: Designer and Developer
  • Team: Solo project
  • When: Dec 2024 – May 2026
  • Status: Live, version 3.0
JavaScriptHTML CanvasCSSLemLib
Enlarge image: RoboRoute’s editor: a dark top-down VEX field with numbered waypoints joined by yellow path lines, and a toolbar for path modes, insert, delete, trim, and code generation.
Fig. 1 An earlier version of the editor on the High Stakes skills field.

Overview

Planning a VEX autonomous routine means turning a strategy into field coordinates and headings, then into code. RoboRoute does that in the browser. You place waypoints on a to-scale field, set a heading at each one, and copy out LemLib motion commands.

Design

How it works

The field is modeled in inches, 144 on a side, with the origin at its center. Every click is converted from canvas pixels into field inches (the canvas is 800 px for 144 in, about 5.56 px per inch, with the y-axis flipped), so exported coordinates are in field inches.

Each waypoint stores x, y, and a heading measured clockwise from the field’s +y direction. You adjust a heading with the scroll wheel or type it in. Export writes one chassis.setPose() for the starting point, then one chassis.moveToPose(x, y, θ, timeout) per waypoint.

  • Field presets for four games (Over Under, High Stakes, Push Back, Override), each in match and skills layouts, plus an empty field and custom image upload.
  • Insert a point mid-segment (it takes the average of its neighbors’ headings, handling the wrap at 360°), delete, trim, undo, and redo.
  • Save and load routes as JSON, and a sketch layer for marking up strategy on the field.
Process

One change between versions

Earlier versions (screenshot above) offered both straight and Bézier path modes. Version 3.0 draws straight segments only. Each exported line is a moveToPose target, and LemLib’s controller decides the curve the robot actually drives, so the planner only has to get positions and headings right.

Reflection

Limits

  • RoboRoute plans geometry. It doesn’t simulate the drivetrain, so the timeout on each move is set by hand (1000 ms by default).
  • Exports target LemLib’s chassis API. Teams using another motion library would have to translate the commands.
Resources

Links & Source