Skip to main content

Package to easily control your DotBots and SailBots.

Project description

CI PyPI version Documentation Coverage License

PyDotBot

This package contains a complete environment for controlling and visualizing DotBots.

The DotBots hardware design can be found here (PCB). The firmware running on the DotBots can be found here.

This package can also be used to control devices running the SailBot firmware application.

DotBots controller overview

Installation

Run pip install pydotbot

Setup

Flash the required firmwares on the DotBots and gateway board (use an nRF52833DK/nRF52840DK/nrf5340DK board as gateway), as explained in the DotBots firmware repository.

Usage

dotbot-controller --help
Usage: dotbot-controller [OPTIONS]

  DotBotController, universal SailBot and DotBot controller.

Options:
  -p, --port TEXT                 Virtual com port. Defaults to '/dev/ttyACM0'
  -b, --baudrate INTEGER          Serial baudrate. Defaults to 1000000
  -d, --dotbot-address TEXT       Address in hex of the DotBot to control.
                                  Defaults to FFFFFFFFFFFFFFFF
  -g, --gw-address TEXT           Gateway address in hex. Defaults to
                                  0000000000000000
  -s, --swarm-id TEXT             Swarm ID in hex. Defaults to 0000
  -w, --webbrowser                Open a web browser automatically
  -v, --verbose                   Run in verbose mode (all payloads received
                                  are printed in terminal)
  --log-level [debug|info|warning|error]
                                  Logging level. Defaults to info
  --log-output PATH               Filename where logs are redirected
  --handshake                     Perform a basic handshake with the gateway
                                  board on startup
  --help                          Show this message and exit.

By default, the controller expects the serial port to be /dev/ttyACM0, as on Linux, use the --port option to specify another one if it's different. For example, on Windows, you'll need to check which COM port is connected to the gateway and add --port COM3 if it's COM3.

Using the --webbrowser option, a tab will automatically open at http://localhost:8000/PyDotBot. The page maintains a list of available DotBots, allows to set which one is active and controllable and provide a virtual joystick to control it or change the color of the on-board RGB LED.

Lighthouse positioning

The DotBots firmware comes with a cheap indoor positioning system based on Valve Lighthouse 2.

To get the positioning to work and the DotBots to be tracked in real-time the system must be first calibrated by clicking the "Start calibration" or "Update calibration" button below the grid map and then by following the instructions there.

Tests

To run the tests, install tox and use it:

tox

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

pydotbot-0.19.1.tar.gz (2.9 MB view hashes)

Uploaded Source

Built Distributions

pydotbot-0.19.1-cp312-cp312-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

pydotbot-0.19.1-cp312-cp312-win32.whl (3.0 MB view hashes)

Uploaded CPython 3.12 Windows x86

pydotbot-0.19.1-cp312-cp312-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

pydotbot-0.19.1-cp312-cp312-musllinux_1_1_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

pydotbot-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pydotbot-0.19.1-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pydotbot-0.19.1-cp312-cp312-macosx_10_16_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.12 macOS 10.16+ ARM64

pydotbot-0.19.1-cp311-cp311-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pydotbot-0.19.1-cp311-cp311-win32.whl (3.0 MB view hashes)

Uploaded CPython 3.11 Windows x86

pydotbot-0.19.1-cp311-cp311-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pydotbot-0.19.1-cp311-cp311-musllinux_1_1_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

pydotbot-0.19.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pydotbot-0.19.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pydotbot-0.19.1-cp311-cp311-macosx_10_16_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.11 macOS 10.16+ ARM64

pydotbot-0.19.1-cp310-cp310-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pydotbot-0.19.1-cp310-cp310-win32.whl (3.0 MB view hashes)

Uploaded CPython 3.10 Windows x86

pydotbot-0.19.1-cp310-cp310-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pydotbot-0.19.1-cp310-cp310-musllinux_1_1_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

pydotbot-0.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pydotbot-0.19.1-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pydotbot-0.19.1-cp310-cp310-macosx_10_16_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.10 macOS 10.16+ ARM64

pydotbot-0.19.1-cp39-cp39-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pydotbot-0.19.1-cp39-cp39-win32.whl (3.0 MB view hashes)

Uploaded CPython 3.9 Windows x86

pydotbot-0.19.1-cp39-cp39-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pydotbot-0.19.1-cp39-cp39-musllinux_1_1_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

pydotbot-0.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pydotbot-0.19.1-cp39-cp39-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pydotbot-0.19.1-cp39-cp39-macosx_10_16_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 macOS 10.16+ ARM64

pydotbot-0.19.1-cp38-cp38-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pydotbot-0.19.1-cp38-cp38-win32.whl (3.0 MB view hashes)

Uploaded CPython 3.8 Windows x86

pydotbot-0.19.1-cp38-cp38-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pydotbot-0.19.1-cp38-cp38-musllinux_1_1_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

pydotbot-0.19.1-cp38-cp38-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pydotbot-0.19.1-cp38-cp38-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (2.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

pydotbot-0.19.1-cp38-cp38-macosx_10_16_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.16+ ARM64

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