Skip to content

IMU Interface

Robot attitude information (Roll/Pitch/Yaw) can be obtained through the real-time basic status query (Type=1002).

The motion host reports ImuSensorData struct data via UDP (included in ControllerSensorData):

Command CodeCommand TypeSend Frequency
0x100A1200Hz
struct ImuSensorData {
int32_t timestamp;
union {
float buffer_float[9];
uint8_t buffer_byte[3][12];
struct {
float roll, pitch, yaw; // Angles (°)
float omega_x, omega_y, omega_z; // Angular velocity (rad/s)
float acc_x, acc_y, acc_z; // Acceleration (m/s2)
};
};
};
FieldTypeDescription
timestampint32_tTimestamp
roll / pitch / yawfloatAttitude angles (°)
omega_x / omega_y / omega_zfloatAngular velocity (rad/s)
acc_x / acc_y / acc_zfloatAcceleration (m/s2)