18 namespace experimental {
29 float getAxis(
size_t axis)
const;
33 std::array<float, NumButtons>
axes_;
63 static std::unique_ptr<MobileIO> create(
const std::string& family,
const std::string& name);
75 return setSnap(axis_number, std::numeric_limits<float>::quiet_NaN());
78 bool setSnap(
size_t axis_number,
float snap_to);
79 bool setAxisValue(
size_t axis_number,
float value);
81 bool setButtonMode(
size_t button_number,
ButtonMode mode);
82 bool setButtonOutput(
size_t button_number,
bool on);
84 bool setLedColor(uint8_t r, uint8_t g, uint8_t b);
86 bool sendText(
const std::string& message);
93 MobileIO(std::shared_ptr<hebi::Group>);
std::shared_ptr< hebi::Group > group_
std::array< ButtonState, NumButtons > buttons_
A list of Feedback objects that can be received from a Group of modules; the size() must match the nu...
bool getButton(size_t button) const
std::array< float, NumButtons > axes_
std::bitset< NumButtons > buttons_
static constexpr size_t NumButtons
Feedback objects have various fields representing feedback from modules; which fields are populated d...
const hebi::Feedback & getLastFeedback() const
friend struct MobileIODiff
MobileIOState current_state_
bool disableSnap(size_t axis_number)
float getAxis(size_t axis) const