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.9.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

sbot-0.9.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file sbot-0.9.0.tar.gz.

File metadata

  • Download URL: sbot-0.9.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.6.15 Linux/5.15.0-1014-azure

File hashes

Hashes for sbot-0.9.0.tar.gz
Algorithm Hash digest
SHA256 7361a18dc6752062339df8990890ad16ee146856772fe57cd32d19bc02033164
MD5 fb3d75779c81951fcffd7b2706618c15
BLAKE2b-256 26ebf8b7afb892dd263c90965eeb023957609ecc233d723fa73b519bb1789be2

See more details on using hashes here.

File details

Details for the file sbot-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: sbot-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.6.15 Linux/5.15.0-1014-azure

File hashes

Hashes for sbot-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbbd4d2d5740adf49a81dfeb504649ce8fee6177217d2b74cce3166face1afad
MD5 e0b89cf527e1b5c9051920307d12bf82
BLAKE2b-256 6c7a24453f85623334e53740123477b1d56b73db36ae1b0990814e789a4802a4

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