TeslasuitDocumentation
APIs

Overview

This page serves as your guide to the documentation: you'll find an overview of how everything is organized, recommended reading paths for newcomers, and direct links to every section you might need.

Reading flow#

If you're starting out, read the sections in this order. Each step links to a section overview, so this doubles as a guided tour.

  1. Getting started — install the SDK, connect a device, and reach your first subsystem.
  2. Main concepts — the mental model: what each subsystem senses or actuates, and the vocabulary the rest of the reference assumes.
  3. Examples — complete, runnable scripts. The fastest way to feel the API on real hardware.
  4. API · Core then API · Subsystems — the class-by-class reference, for when you know what you want to build.

Already have a device connected? The Getting started page ends with a deeper reading flow tailored to running real code.

The full map#

1 · Introduction#

Set up and get oriented.

PageWhat's there
Overview (this page)How the docs are organized and where to start.
Getting startedRequirements, installing teslasuit_sdk, connecting a device, and accessing a subsystem.

2 · Main concepts#

What the hardware does — the ideas the API assumes.

PageWhat's there
OverviewA map of the XR5 subsystems with a per-topic reading list.
Haptics & EMSProgrammable electrical stimulation, from light touch through to muscle contractions driven by electrical muscle stimulation (EMS) and functional electrical stimulation (FES).
MocapFull-body motion capture from the suit's inertial measurement units (IMUs): skeleton, raw IMU, and biomechanical angles.
PPGOptical photoplethysmography (PPG) heart-rate sensing, with heart rate variability (HRV) and raw pulse signals.
Body & channel mapAn interactive tool showing how the suit addresses channels by anatomical bone. It also provides a copy-pastable snippet for the selected bone.

3 · API · Core#

The layer above subsystems — library lifecycle, device management, bone-channel mapping, and shared types.

PageWhat's there
OverviewHow TsApi, the device manager and the mapper fit together, with the full inheritance diagram.
TsApiThe central entry point that loads the C library and owns the other managers.
Device managerDiscover, attach and select connected devices.
DeviceA single Teslasuit device and the subsystems it exposes.
MapperBone ↔ channel mapping and the 2D layout used by the body map.
Asset managerLoad, retrieve and unload haptic assets and animations.
Data structuresThe shared types and enums used across every subsystem.

4 · API · Subsystems#

One class per device capability.

PageWhat's there
HapticTsHapticPlayer — instant touches and looped playables.
MocapTsMocap — raw, skeleton and biomechanical data.
PPGTsPpg — heart rate and HRV biometrics.

5 · Examples#

Complete, runnable scripts grouped by subsystem.

PageWhat's there
OverviewEvery runnable script, grouped by subsystem.
Play a haptic touchPlay your first touch on the suit.
Read heart rateRead live heart rate from a PPG node.
Measure HRVRead the Mean inter-beat interval from the PPG sensor.
Stream motion dataStream skeleton data and biomechanical angles.

Next: head to Getting started to connect a device and test out some of its functionality