Low-Level C++ SDK  v1.2.0
Loading...
Searching...
No Matches
WeArtTrackingRawData Class Reference

Object used to track the raw sensors data for a single thimble. More...

#include <WeArtTrackingRawData.h>

Inheritance diagram for WeArtTrackingRawData:
[legend]

Classes

struct  Sample
 Sensor data sample. More...
 

Public Member Functions

 WeArtTrackingRawData (HandSide handSide, ActuationPoint actuationPoint)
 Create a WeArtTrackingRawData tracking object.
 
Sample GetLastSample ()
 Get the last sample received.
 
void AddSampleCallback (std::function< void(Sample)> callback)
 Adds a callback called whenever a new sample is received.
 
void OnMessageReceived (WeArtMessage *msg) override
 Callback called when an accepted message is received.
 
- Public Member Functions inherited from WeArtMessageListener
 WeArtMessageListener (std::set< std::string > ids)
 Basic message listener constructor.
 
bool accept (std::string id)
 Tells if a given ID can be processed by the listener.
 
virtual void OnMessageReceived (WeArtMessage *message)=0
 Callback called when an accepted message is received.
 

Additional Inherited Members

- Protected Attributes inherited from WeArtMessageListener
std::set< std::string > acceptedIds
 

Detailed Description

Object used to track the raw sensors data for a single thimble.

WEART - Raw Sensor Data thimble TD https://www.weart.it/

Constructor & Destructor Documentation

◆ WeArtTrackingRawData()

WeArtTrackingRawData::WeArtTrackingRawData ( HandSide  side,
ActuationPoint  actuation 
)

Create a WeArtTrackingRawData tracking object.

Parameters
handSideHand side from which to take the sensor data
actuationPointThimble from which to take the sensor data

WEART - Raw Sensor Data thimble TD https://www.weart.it/

Member Function Documentation

◆ AddSampleCallback()

void WeArtTrackingRawData::AddSampleCallback ( std::function< void(Sample)>  callback)

Adds a callback called whenever a new sample is received.

Parameters
callbackCallback called when a sample is received

◆ GetLastSample()

WeArtTrackingRawData::Sample WeArtTrackingRawData::GetLastSample ( )

Get the last sample received.

Returns
the last sample received

◆ OnMessageReceived()

void WeArtTrackingRawData::OnMessageReceived ( WeArtMessage *  msg)
overridevirtual

Callback called when an accepted message is received.

Parameters
messageReceived message

Implements WeArtMessageListener.


The documentation for this class was generated from the following files: