User-friendly GUI where you can define paths on the playing map and convert them into code for your Robot.
We developed this solution for the First Lego League competition in order to accelerate our testing process. We hope that this tool will help you as well.
The map is currently based on the officiaal FLL map from the Masterpiece season 2023/2024 and will be updated automatically for each season.
Pathfinder-GUI was made with Python 3.12.0. Make sure to install the newest version.
Furthermore, please install the libraries listed in the "requirements.txt" file.
-
Clone this repository from GitHub
-
Run "main.py" file
-
"Output": Prints the code for all paths to the console.
Important Note: The program only calculates the length and angle of the path. You can format the output as you like.
-
"Right" / "Left": Sets the starting point for the current path to the right or left Start Zone. You can only set the starting point if the path is empty.
-
"Clear Map": Clears all paths on the map.
The starting point is always shown in one of the home bases. Just click on the map to add the next points. The shortest path between two points using the euclidean distance is added automatically.
Use number keys 1-6 to select a new path with a different color. The starting point is now colored with the same color as the path. You can switch between paths at any time.
If you find a bug, kindly report it to [email protected] or open a pull request. We will try to fix it as soon as possible. If you have any questions regarding the code, please reach out to us using the same Email adress.
Developers: @kaiwxn @Ultrawurzelzwerg