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.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

sbot-0.10.0-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

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