Skip to main content

Python resources and API for 3Space sensors from Yost Labs Inc.

Project description

API and Resources for Yost Labs 3.0 Threespace sensors.

YostLabs Namespace Package System

This package is part of the YostLabs namespace package environment for working with Yost Labs sensors. Available packages include:

  • yostlabs - Sensor communication and API for 3Space sensors
  • yostlabs-math - Math utilities for quaternions, vectors, and coordinate transformations
  • yostlabs-graphics - Graphic API for sensor data visualization

Installation

python -m pip install yostlabs

⚠️ Important Upgrade Notice: If you are upgrading from a previous version, the namespace structure has changed and may cause installation conflicts. If you encounter issues during the upgrade, uninstall all existing yostlabs packages first and then reinstall the newest versions:

python -m pip uninstall yostlabs yostlabs-math yostlabs-graphics
python -m pip install yostlabs

Basic Usage

USB

from yostlabs.tss3.api import ThreespaceSensor

#Will auto detect a 3-Space sensor connected to the machine via a USB connection
sensor = ThreespaceSensor()

result = sensor.getPrimaryCorrectedAccelVec()
print(result)

sensor.cleanup()

BLE

from yostlabs.tss3.api import ThreespaceSensor
from yostlabs.communication.ble import ThreespaceBLEComClass

#PUT YOUR SENSORS BLE_NAME HERE
ble_name = "YL-TSS-####" #Defaults to the lowest 4 hex digits of the sensors serial number
com_class = ThreespaceBLEComClass(ble_name)
sensor = ThreespaceSensor(com_class)
#sensor = ThreespaceSensor(ThreespaceBLEComClass) #Attempt to auto discover nearby sensor

result = sensor.getPrimaryCorrectedAccelVec()
print(result)

sensor.cleanup()

Click here for more examples.

Communication

The ThreespaceSensor class utilizes a ThreespaceComClass to define the hardware communication interface between the device utlizing this API and the Threespace Sensor. Currently only the ThreespaceSerialComClass is available for use with the API. New ComClasses for different interfaces will be added to the communication package in the future.

To create your own ThreespaceComClass, take a look at the necessary interface definitions here and the Serial implementation here.

Documentation

WIP. Please review the example scripts. For further assistance contact techsupport@yostlabs.com.

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

yostlabs-2026.4.13.tar.gz (371.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yostlabs-2026.4.13-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

Details for the file yostlabs-2026.4.13.tar.gz.

File metadata

  • Download URL: yostlabs-2026.4.13.tar.gz
  • Upload date:
  • Size: 371.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for yostlabs-2026.4.13.tar.gz
Algorithm Hash digest
SHA256 b55b9552f6de49b4a7a182db5442a37c66d4d33acc9acc09ef5e8e8ed2f7d1da
MD5 c0aa23f5c7092af15356e2c966b311f6
BLAKE2b-256 34ae0c195b91050376a7badfb91cf4f45a1e84e97b3aec810f71e9f8f2cb7ade

See more details on using hashes here.

File details

Details for the file yostlabs-2026.4.13-py3-none-any.whl.

File metadata

  • Download URL: yostlabs-2026.4.13-py3-none-any.whl
  • Upload date:
  • Size: 68.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for yostlabs-2026.4.13-py3-none-any.whl
Algorithm Hash digest
SHA256 21db3c50d75d928c49d3fdc89b742380adbd7b43228320b90695fea3c7f26298
MD5 cf2ae6d2a87ea4f5727e05245e4bbc42
BLAKE2b-256 86c1b0d6b1e05c36cb933c4b59f4b90ed0f90573381f31dc5e96d20963d5e176

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