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

#include <WeArtAnalogSensorData.h>

Inheritance diagram for WeArtAnalogSensorData:
[legend]

Classes

struct  Sample
 Sensor data sample. More...
 

Public Member Functions

 WeArtAnalogSensorData (HandSide handSide, ActuationPoint actuationPoint)
 Create a WeArtAnalogSensorData 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

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

Constructor & Destructor Documentation

◆ WeArtAnalogSensorData()

WeArtAnalogSensorData::WeArtAnalogSensorData ( HandSide  side,
ActuationPoint  actuation 
)

Create a WeArtAnalogSensorData tracking object.

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

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

Member Function Documentation

◆ AddSampleCallback()

void WeArtAnalogSensorData::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()

WeArtAnalogSensorData::Sample WeArtAnalogSensorData::GetLastSample ( )

Get the last sample received.

Returns
the last sample received

◆ OnMessageReceived()

void WeArtAnalogSensorData::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: