Skip to main content

IronBoy Library

Project description

Tactigon IronBoy

The tactigon team

This package enables to comunicate with IronBoy using a Bluetooth to UART device such as Adafruit Bluefruit LE Uart.

This package can be used alongside with Tactigon Gear and Tactigon Speech libraries to drive IronBoy robot using gesture and "edge" voice command detection.

Prerequisites

In order to use the Tactigon Arduino Braccio library you need:

  • Python version: following versions has been used and tested. It is STRONGLY recommended to use these ones depending on platform.
    • Win10: 3.8.7

Installing

Install and update using pip:

pip install tactigon-ironboy

A Simple Example

import time
from tactigon_ironboy import IronBoy, IronBoyCommand, IronBoyConfig

if __name__ == "__main__":
    cfg = IronBoyConfig("TactigonIronBoy", "FE:E2:2B:47:5D:80")

    with IronBoy(cfg) as ironboy:
        while True:
            if not ironboy.connected:
                print("connecting...")
                time.sleep(1)
                continue

            print("Connected")

            # Do 5 steps forward
            ironboy.send_command(IronBoyCommand.WALK_FWD, 5)

            while ironboy.executing:
                time.sleep(0.1)

            # Do celebration!
            ironboy.send_command(IronBoyCommand.CELEBRATE)

            while ironboy.executing:
                time.sleep(0.1)
            
            break

Links

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

tactigon_ironboy-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file tactigon_ironboy-1.0.1.tar.gz.

File metadata

  • Download URL: tactigon_ironboy-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tactigon_ironboy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 54ec85b81cded7fdd3a094cf5e1155dad99434f655317262177b895f9ce3d4f7
MD5 a2776470cff36ccc6072c30f86579e83
BLAKE2b-256 fbd8ed3118715b1baa80201d85e696d1a3cef97b71c9add55bc8b69a02d76785

See more details on using hashes here.

Supported by

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