Automatically generate code stubs for mechanisms in FRC Robot Code. This project leverages WPILib, AdvantageKit, and CTRE's Phoenix-6 library to automatically generate boilerplate complete with hardware IO abstraction and simulation. RobotVibeCoder supports 3 mechanism types: elevators, single jointed arms, and flywheels.
RobotVibeCoder is hosted on PyPI: robotvibecoder. It can be installed with pip:
pip install robotvibecoderAs long as your PATH includes your python scripts folder, this will add the CLI to path and you will be able to run it as robotvibecoder from a command prompt/terminal.
Here's a quick guide on usage; in-depth docs can be found in the docs/ folder
- Create a config:
A config specifies the name of the mechanism, its java package, and the name of its motors and encoder. A config can be generated interactively with:
robotvibecoder new -i config.json- Generate a mechanism using that config:
After the config has been edited to your satisfaction, generate Java IO code from that config:
robotvibecoder generate --config config.jsonrobotvibecoder is distributed under the terms of the GPL-3.0-only license.