#include <mobile_io.hpp>
Public Types | |
enum | ButtonMode { ButtonMode::Momentary, ButtonMode::Toggle } |
Public Member Functions | |
bool | clearText () |
bool | disableSnap (size_t axis_number) |
const hebi::Feedback & | getLastFeedback () const |
MobileIOState | getState () |
MobileIOState | getState (bool &got_feedback) |
bool | sendText (const std::string &message) |
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 | setSnap (size_t axis_number, float snap_to) |
Static Public Member Functions | |
static std::unique_ptr< MobileIO > | create (const std::string &family, const std::string &name) |
Private Member Functions | |
MobileIO (std::shared_ptr< hebi::Group >) | |
Private Attributes | |
MobileIOState | current_state_ |
hebi::GroupFeedback | fbk_ |
std::shared_ptr< hebi::Group > | group_ |
Definition at line 57 of file mobile_io.hpp.
|
strong |
Enumerator | |
---|---|
Momentary | |
Toggle |
Definition at line 59 of file mobile_io.hpp.
|
private |
Definition at line 127 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::clearText | ( | ) |
Definition at line 121 of file mobile_io.cpp.
|
static |
Definition at line 43 of file mobile_io.cpp.
|
inline |
Definition at line 74 of file mobile_io.hpp.
|
inline |
Definition at line 90 of file mobile_io.hpp.
MobileIOState hebi::experimental::MobileIO::getState | ( | ) |
Definition at line 51 of file mobile_io.cpp.
MobileIOState hebi::experimental::MobileIO::getState | ( | bool & | got_feedback | ) |
Definition at line 56 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::sendText | ( | const std::string & | message | ) |
Definition at line 115 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::setAxisValue | ( | size_t | axis_number, |
float | value | ||
) |
Definition at line 91 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::setButtonMode | ( | size_t | button_number, |
ButtonMode | mode | ||
) |
Definition at line 97 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::setButtonOutput | ( | size_t | button_number, |
bool | on | ||
) |
Definition at line 103 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::setLedColor | ( | uint8_t | r, |
uint8_t | g, | ||
uint8_t | b | ||
) |
Definition at line 109 of file mobile_io.cpp.
bool hebi::experimental::MobileIO::setSnap | ( | size_t | axis_number, |
float | snap_to | ||
) |
Definition at line 85 of file mobile_io.cpp.
|
private |
Definition at line 97 of file mobile_io.hpp.
|
private |
Definition at line 96 of file mobile_io.hpp.
|
private |
Definition at line 95 of file mobile_io.hpp.