A Python script which generates Java code for the Robot Vision API to help teams get started with simple vision tracking.
Future: Build a GUI for this.
Install the following dependencies:
- python3
Then clone this repository.
To use this script, run the following command from the source directory. Where ClassName is the name of the Java file/class. Answer the questions asked by the script to set the vision parameters.
python3 visiongen.py ClassName
This will generate a file called ClassName.java
in the same directory which contains the vision code needed for FRC.
Please fork this repo and submit a pull request to contribute. I will review all changes and respond if they are accepted or rejected (as well as reasons, so it will be accepted).
If you are submitting a bug, please describe the bug in detail and how to replicate if possible. Logs are also very useful.
If you are submitting a feature idea, please describe it in detail and document the potential use cases of that feature if it isn't clear.
Just me for now.
You are free to copy, modify, and distribute VisionGen with attribution under the terms of the MIT license. See the LICENSE file for details.