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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yostlabs-2026.4.10.tar.gz.
File metadata
- Download URL: yostlabs-2026.4.10.tar.gz
- Upload date:
- Size: 371.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b603b3416f08049812be7ab02a8f1766a4eb3264d9583413dd947c524fd08e
|
|
| MD5 |
d9860553d0ba8f0d55468060ab501001
|
|
| BLAKE2b-256 |
d8679d789dade15de70ae5b42b8055a82b086855166cce9fa393160a3226ba1a
|
File details
Details for the file yostlabs-2026.4.10-py3-none-any.whl.
File metadata
- Download URL: yostlabs-2026.4.10-py3-none-any.whl
- Upload date:
- Size: 68.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838d100d3b45fde267d08ac16cd0600525616fc50b7d2d18f3006f6f270ec7dd
|
|
| MD5 |
a02ceb2d08445e931e5df06ac629ef72
|
|
| BLAKE2b-256 |
7b865494a1f1bba155017afbc6f8b7ecd4f034ea52c5697ddbfb4a9bc21a0417
|