A tool to plot paths for First Lego League
Welcome! This tool is designed to help First Lego League teams plan their movement across the field.
This is a simple script that relies on providing a JSON text file with a set of missions. The tool helps visualize and trace the robot's movement on the field based on the mission data. Importantly, it is intended to be used by students to help assist coding. I intentionally don't want to make it overly complicated so students can drive the development!
Positive offset is shown here where the rotational center is skewed towards the rear of the geometric center. Negative offset would be skewed towards the front of the robot relative to the geometric center.
This helps to explain the orientation of the robot on the playing field.
There is a builder tool that allows move and rotate blocks to be added. There is also a JSON format that is used to run the app.
Below is an example:
{
"name": "Coral Sweep",
"startX": 11.5,
"startY": 0,
"startAngle": 90,
"robotWidthCm": 17,
"robotLengthCm": 15,
"traceColor": "green",
"offsetY":1.8,
"actions": [
{ "type": "move", "value": 17},
{ "type": "rotate", "value": -24 },
{ "type": "move", "value": 50 },
{ "type": "move", "value": -50 },
{ "type": "rotate", "value": 24 },
{ "type": "move", "value": -17}
]
}
I've also built in the capability for team's to save their missions to a database. It requires a team name and a unique 4-digit pin. Register your team with a name, pin and a coaches email contact.
Good luck, and have fun plotting your robot’s paths!