- Notifications
You must be signed in to change notification settings - Fork20
Official Repository of python implementation of WPILib components
License
robotpy/mostrobotpy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains core python libraries that wrap the C++ artifacts ofallwpilib. These libraries areofficially supported for use in the FIRST Robotics Competition.
API documentation is athttps://robotpy.readthedocs.io/projects/robotpy/en/latest/
Warning
It is not recommended for users to build their own copy of RobotPy.Instead you should use our prebuilt packages that we publish on PyPI andon the WPILib artifactory site. See TODO for details
mostrobotpy consists of many interdependent python packages, which can befound in thesubprojects directory. Each subproject can be built likeany other python project, but it is recommended that you use ourrdev.shtool instead.
You must have a working C++ build system and python development headersinstalled for your system.
Next install dependencies using pip:
pip install -r rdev_requirements.txtpip install numpyThen run this command to build all the wheels.
./rdev.sh ci runAll the resulting wheels are indist, which can be installed usingpip.
To install all robotpy packages ineditable modefirst run this to install dependencies:
./rdev.sh install-prereqsThen each time you want to build everything:
./rdev.sh developFor pure python development, you can just edit the files in this repository in-place, andchanges will take effect immediately.
If you are changing C++/wrapper code, you will need to rebuild the package that you aremodifying. You can either run the develop command above (which rebuilds everything) orrebuild an individual package:
./rdev.sh develop NAMEIt can be a slow process, see thesemiwrap documentationfor tips to make it more efficient.
We only support cross-compiling for RoboRIO and raspbian via the WPILibdocker build containers. See.github/workflows/dist.yml'scross-buildjob for the name of the containers and the steps that must be run insidethe container.
About
Official Repository of python implementation of WPILib components
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.