Following instructions here https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/python-setup.html
Install python 3.12
this lib is the basic core stuff
pip install robotpy
python -m robotpy init
python -m robotpy sync
To run all tests (done with pytest under the covers and a bunch of fixtures to make it easy to write robot tests):
python -m robotpy test
To run a single test:
python -m robotpy test -- -k robot_builds_test
To deploy to robot:
python -m robotpy deploy
Api docs https://robotpy.readthedocs.io/projects/robotpy/en/stable/
simulation and testing support https://robotpy.readthedocs.io/projects/pyfrc/en/stable/
python -m robotpy sim
https://robotpy.github.io/community/
https://github.com/thedropbears/pycrescendo/blob/main/robot.py They have some vscode examples working
https://github.com/thedropbears/pycrescendo/blob/main/components/chassis.py Here's the swerve drive code
https://github.com/1757WestwoodRobotics/2024-Crescendo
They are using yaml files for config in an interesting way
https://github.com/FRC-1721/1721-RapidReact/blob/main/rio/subsystems/drivetrain.py