18#include <creos/robot_clock.hpp>
19#include <nlohmann/json.hpp>
131NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
ControllerState, timestamp, axes, buttons)
The messages that are used in the communication between the agent and the client.
Definition accel.hpp:22
Remote control message containing the remote controller state.
Definition controller_state.hpp:29
std::vector< ButtonState > buttons
Buttons data of the remote controller.
Definition controller_state.hpp:123
auto operator<=>(const ControllerState &other) const =default
Compare two ControllerState messages.
creos::RobotClock::time_point timestamp
Timestamp of the remote controller state.
Definition controller_state.hpp:45
std::vector< float > axes
Axes data of the remote controller.
Definition controller_state.hpp:86