Skip to main content

Tactigon Gear to connect to Tactigon Skin wereable platform

Project description

Tactigon Gear

The tactigon team

This package enables the wearable device Tactigon Skin to connect to your python project using Bluetooth Low Energy.

Architecture

Tactigon Gear environment has the following architecture:

Server is located on the cloud and it is manteined by Next Industries s.r.l. Server has a web interface where you can handle your profile and your data (models and gestures)

Provided Tactigon Gear SDK is the implementation of Tactigon Gear environment client side

Tactigon Gear SDK is used for collecting new raw data, send the data to server, ask server to train a model using the raw data, and download the model from server. Finally use the model for testing real-time gesture recognition.

Tactigon Gear architecture definition

Prerequisites

In order to use the Tactigon Gear SDK the following prerequisites needs to be observed:

  • Python version: following versions has been used and tested. It is STRONGLY recommended to use these ones depending on platform.
    • Win10: 3.12.x
    • Linux: 3.12.x
    • Mac osx: 3.12.x
    • Raspberry: 3.12.x

Installing

Install and update using pip:

pip install tactigon-gear

A Simple Example

import time
from tactigon_gear import TSkin, TSkinConfig, Hand, OneFingerGesture

def main():
    TSKIN_MAC = "change-me"
    tskin_cfg = TSkinConfig(TSKIN_MAC, Hand.RIGHT) # Hand.LEFT if the TSkin is wear on left hand.

    with TSkin(tskin_cfg) as tskin:
        i = 0

        while True:
            if not tskin.connected:
                print("Connecting..")
                time.sleep(0.5)
                continue

            if i > 5:
                break

            a = tskin.angle
            t = tskin.touch
            acc = tskin.acceleration
            gyro = tskin.gyro

            print(a, t, acc, gyro)

            if t and t.one_finger == OneFingerGesture.TAP_AND_HOLD:
                i += 1
            else:
                i = 0

            time.sleep(0.02)
        
if __name__ == "__main__":
    main()

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

Uploaded Source

File details

Details for the file tactigon_gear-5.4.3.tar.gz.

File metadata

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

File hashes

Hashes for tactigon_gear-5.4.3.tar.gz
Algorithm Hash digest
SHA256 21bfde751ab2ad85d613f27ccd1d8aaa344371231bb983ed6b160e85a20fb1a7
MD5 d78b5a55ea1c386c021752e0c1840cf3
BLAKE2b-256 599c97fdb9ebb51cc4f3eec273dbb831ffc9aedd2a5e1c510de0fe96d0c39bf6

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