Python resources and API for 3Space sensors from Yost Labs Inc.
Project description
API and Resources for Yost Labs 3.0 Threespace sensors.
Installation
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-2025.5.14.tar.gz.
File metadata
- Download URL: yostlabs-2025.5.14.tar.gz
- Upload date:
- Size: 354.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26be8a61237c6533f2eb466907c92aa649cd5d7abcec9aac72921e1aba9c0655
|
|
| MD5 |
d49cf0f66a208d9ccc5b797d38558f77
|
|
| BLAKE2b-256 |
0b08ddd253514e22d15fd7e0150975955896ba396c4b2435e21874b9998fd31b
|
File details
Details for the file yostlabs-2025.5.14-py3-none-any.whl.
File metadata
- Download URL: yostlabs-2025.5.14-py3-none-any.whl
- Upload date:
- Size: 49.1 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 |
de0f88141d43116369b77ce4b681de66609fda3492e14cf56f7873d10478291f
|
|
| MD5 |
4907f5335e63b81d4ce337ce043f174a
|
|
| BLAKE2b-256 |
f9651986d52820a9281fc6217b3ea436d9b4e7451bcf76b468ad6c05b5a996a5
|