Skip to main content

SourceBots API

Project description

sbot

CircleCI PyPI version Documentation Status MIT license Bees

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbot-0.10.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

sbot-0.10.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

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

Hashes for sbot-0.10.1.tar.gz
Algorithm Hash digest
SHA256 1f3714cd941523516c8bf98ac1e9793673a5458dbd1f6cd7b129a1fdfa4f1b13
MD5 bab6122eab427f6d7766fef084402e34
BLAKE2b-256 35e1d20529cc5f8fb284b41ca912a590ad874a51ff85f0f3a8ab91101981ecc5

See more details on using hashes here.

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

Hashes for sbot-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82d00de15e79d09b9d44fa8cfd7ef665690600ea2c93d8bbf7ab45f64eb6e502
MD5 d090598963f63cbe30dfe0ac1e8d9349
BLAKE2b-256 8ab51a6076438b0158ad519342a18c8e89a58d97b4c5b7aec45e61084e7d48e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page