Student Robotics API for Python 3
Project description
sr.robot3
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:
- Python 3.6+
- Make
Setup
- Clone the repository from GitHub to a folder on your local machine
cd
to that folder, and tell Poetry to install dependencies and set up a virtualenvpoetry install
- You can now enter the virtual environment using
poetry shell
and develop using your IDE of choice.
Tests
The full type, test and lint suite can be run using make: make
.
You can also run parts of the suite.
- Unit tests:
make test
- Unit tests with HTML coverage:
make test-cov
- Linting:
make lint
- Static type checks:
make type
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sr.robot3-2022.0.2.tar.gz
.
File metadata
- Download URL: sr.robot3-2022.0.2.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/5.10.76-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4882f30841df2e7d2d3ea9a68d1f65e10a8bffd71de27a171b2483e535a99914 |
|
MD5 | 2d8ea17723d6cee407d7e19e355d0261 |
|
BLAKE2b-256 | df061e304b1f8660bccd132a2add4191a85d544fbae559670933dbfc3f14ea25 |
File details
Details for the file sr.robot3-2022.0.2-py3-none-any.whl
.
File metadata
- Download URL: sr.robot3-2022.0.2-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/5.10.76-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd34471d230257ca315ad253e1df2def59d9146bd355d0aec7b1edfcae507d2 |
|
MD5 | 8e5133e0a82801ad02c3523a27a78d9f |
|
BLAKE2b-256 | 729934f75308d44d940847d379e13a83859d626071d288f6e72d4e30e8b357f7 |