SourceBots API
Project description
sbot
sbot
- SourceBots Robot API - Powered by j5
This is the API for SourceBots, based on the j5 library for writing Robotics APIs. It will first be deployed at Smallpeice 2019.
Much like it's predecessor, robot-api, sbot
supports
multiple backends, although should be more reliable as there is no UNIX-AF
socket layer.
Installation
Install: pip install sbot
Install with vision support: pip install sbot[vision]
Usage
from sbot import Robot
r = Robot()
Or alternatively:
from sbot import Robot
r = Robot(wait_start=False)
# Setup in here
r.wait_start()
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 sbot/vision/calibrations
named after the camera model.
You will need to edit the calibration file used in sbot/vision/backend.py
.
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 sbot-0.10.1.tar.gz
.
File metadata
- Download URL: sbot-0.10.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.7.13 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3714cd941523516c8bf98ac1e9793673a5458dbd1f6cd7b129a1fdfa4f1b13 |
|
MD5 | bab6122eab427f6d7766fef084402e34 |
|
BLAKE2b-256 | 35e1d20529cc5f8fb284b41ca912a590ad874a51ff85f0f3a8ab91101981ecc5 |
File details
Details for the file sbot-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: sbot-0.10.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.7.13 Linux/5.15.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d00de15e79d09b9d44fa8cfd7ef665690600ea2c93d8bbf7ab45f64eb6e502 |
|
MD5 | d090598963f63cbe30dfe0ac1e8d9349 |
|
BLAKE2b-256 | 8ab51a6076438b0158ad519342a18c8e89a58d97b4c5b7aec45e61084e7d48e9 |