HEBI C++ API  3.4.0
hebi::experimental::MobileIO Class Reference

#include <mobile_io.hpp>

Public Types

enum  ButtonMode { ButtonMode::Momentary, ButtonMode::Toggle }
 

Public Member Functions

MobileIOState getState ()
 
MobileIOState getState (bool &got_feedback)
 
bool disableSnap (size_t axis_number)
 
bool setSnap (size_t axis_number, float snap_to)
 
bool setAxisValue (size_t axis_number, float value)
 
bool setButtonMode (size_t button_number, ButtonMode mode)
 
bool setButtonOutput (size_t button_number, bool on)
 
bool setLedColor (uint8_t r, uint8_t g, uint8_t b)
 
bool sendText (const std::string &message)
 
bool clearText ()
 
const hebi::FeedbackgetLastFeedback () const
 
const Vector3f getPosition () const
 
const Quaternionf getOrientation () const
 

Static Public Member Functions

static std::unique_ptr< MobileIOcreate (const std::string &family, const std::string &name)
 

Member Enumeration Documentation

◆ ButtonMode

Enumerator
Momentary 
Toggle 

Member Function Documentation

◆ create()

std::unique_ptr< MobileIO > hebi::experimental::MobileIO::create ( const std::string &  family,
const std::string &  name 
)
static

◆ getState() [1/2]

MobileIOState hebi::experimental::MobileIO::getState ( )

◆ getState() [2/2]

MobileIOState hebi::experimental::MobileIO::getState ( bool &  got_feedback)

◆ disableSnap()

bool hebi::experimental::MobileIO::disableSnap ( size_t  axis_number)
inline

◆ setSnap()

bool hebi::experimental::MobileIO::setSnap ( size_t  axis_number,
float  snap_to 
)

◆ setAxisValue()

bool hebi::experimental::MobileIO::setAxisValue ( size_t  axis_number,
float  value 
)

◆ setButtonMode()

bool hebi::experimental::MobileIO::setButtonMode ( size_t  button_number,
ButtonMode  mode 
)

◆ setButtonOutput()

bool hebi::experimental::MobileIO::setButtonOutput ( size_t  button_number,
bool  on 
)

◆ setLedColor()

bool hebi::experimental::MobileIO::setLedColor ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)

◆ sendText()

bool hebi::experimental::MobileIO::sendText ( const std::string &  message)

◆ clearText()

bool hebi::experimental::MobileIO::clearText ( )

◆ getLastFeedback()

const hebi::Feedback& hebi::experimental::MobileIO::getLastFeedback ( ) const
inline

◆ getPosition()

const Vector3f hebi::experimental::MobileIO::getPosition ( ) const
inline

◆ getOrientation()

const Quaternionf hebi::experimental::MobileIO::getOrientation ( ) const
inline

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