18#include <creos/robot_clock.hpp>
19#include <nlohmann/json.hpp>
46NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
WheelState, position, velocity)
73NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
WheelStates, timestamp, frame_id, wheels)
The messages that are used in the communication between the agent and the client.
Definition accel.hpp:22
Wheel state message containing the position and velocity of one wheel.
Definition wheel_state.hpp:29
auto operator<=>(const WheelState &other) const =default
Compare two WheelState messages.
float position
Position of the wheel [rad].
Definition wheel_state.hpp:33
float velocity
Velocity of the wheel [rad/s].
Definition wheel_state.hpp:38
Wheel state message containing the position and velocity of the wheels.
Definition wheel_state.hpp:51
creos::RobotClock::time_point timestamp
Timestamp of the remote controller state.
Definition wheel_state.hpp:56
auto operator<=>(const WheelStates &other) const =default
Compare two ControllerState messages.
std::string frame_id
Frame id of the wheel states.
Definition wheel_state.hpp:61
std::vector< WheelState > wheels
Wheel states.
Definition wheel_state.hpp:67