Struct Turtlebot4Button
Defined in File buttons.hpp
Struct Documentation
-
struct Turtlebot4Button
Public Functions
-
inline explicit Turtlebot4Button(std::vector<std::string> params)
-
inline void set_state(Turtlebot4ButtonState state)
-
inline void spin_once()
-
inline void short_press()
-
inline void long_press()
Public Members
-
std::string short_function_
-
std::string long_function_
-
turtlebot4_function_callback_t short_cb_
-
turtlebot4_function_callback_t long_cb_
-
turtlebot4_function_call_callback_t function_call_cb_
-
int long_press_duration_ms_
-
std::chrono::time_point<std::chrono::steady_clock> last_start_pressed_time_
-
Turtlebot4ButtonState current_state_
-
Turtlebot4ButtonState next_state_
-
inline explicit Turtlebot4Button(std::vector<std::string> params)