Low-Level C++ SDK  v1.3.0
Loading...
Searching...
No Matches
WeArtThimbleTrackingObject Class Reference

Object used to track a single thimble object and its closure value. More...

#include <WeArtThimbleTrackingObject.h>

Inheritance diagram for WeArtThimbleTrackingObject:
[legend]

Public Member Functions

 WeArtThimbleTrackingObject (HandSide handSide, ActuationPoint actuationPoint)
 
void OnMessageReceived (WeArtMessage *msg) override
 Callback called when an accepted message is received.
 
float GetClosure () const
 Get last received thimble closure.
 
float GetAbduction () const
 Get last received thimble abduction.
 
- 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.
 

Protected Attributes

HandSide handSide
 
ActuationPoint actuationPoint
 
float _closure
 
float _abduction
 
- Protected Attributes inherited from WeArtMessageListener
std::set< std::string > acceptedIds
 

Detailed Description

Object used to track a single thimble object and its closure value.

WEART - Tracking thimble component https://www.weart.it/

Constructor & Destructor Documentation

◆ WeArtThimbleTrackingObject()

WeArtThimbleTrackingObject::WeArtThimbleTrackingObject ( HandSide  side,
ActuationPoint  actuation 
)

WEART - Tracking thimble component https://www.weart.it/

Member Function Documentation

◆ GetAbduction()

float WeArtThimbleTrackingObject::GetAbduction ( ) const
inline

Get last received thimble abduction.

Returns
last received thimble abduction

◆ GetClosure()

float WeArtThimbleTrackingObject::GetClosure ( ) const
inline

Get last received thimble closure.

Returns
last received thimble closure

◆ OnMessageReceived()

void WeArtThimbleTrackingObject::OnMessageReceived ( WeArtMessage *  msg)
overridevirtual

Callback called when an accepted message is received.

Parameters
messageReceived message

Implements WeArtMessageListener.

Member Data Documentation

◆ _abduction

float WeArtThimbleTrackingObject::_abduction
protected

◆ _closure

float WeArtThimbleTrackingObject::_closure
protected

◆ actuationPoint

ActuationPoint WeArtThimbleTrackingObject::actuationPoint
protected

◆ handSide

HandSide WeArtThimbleTrackingObject::handSide
protected

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