srobo / sr-robot3-j5

Python 3 API for Student Robotics Kit - Built with j5
MIT License
4 stars 1 forks source link
education python robotics-competition

sr.robot3

Tests PyPI version MIT license Bees

Student Robotics API for Python 3

This package uses PEP420-style namespace packaging.

Development

Requirements

This project uses the Poetry dependency and virtualenv manager.

You will also need:

Setup

Tests

The full type, test and lint suite can be run using make: make.

You can also run parts of the suite.

Adding camera calibrations

You will need to print off a chAruco marker grid.

opencv_interactive-calibration -t=charuco -sz=GRID_SIZE

Replace GRID_SIZE with the length of one of the larger squares (in mm) from the printed marker grid.

Use -ci=1 for specifying camera index if multiple cameras are connected.

Point the camera at the marker grid. Until DF is at or below 30 then press S to save. This will output a cameraParameters.xml file. Place this file in sr/robot3/vision/calibrations named by the camera model.

You will need to add a detection strategy for the camera in to sr/robot3/vision/backend.py.

Contributions

This project is released under the MIT Licence. For more information, please see LICENSE.

The CONTRIBUTORS file can be generated by executing CONTRIBUTORS.gen. This generated file contains a list of people who have contributed to sr.robot3.