Skip to content

RaptorInput (UORB message)

Raptor Input.

TOPICS: raptor_input

Fields

명칭형식Unit [Frame]Range/Enum설명
timestampuint64usTime since system start
timestamp_sampleuint64usSampling timestamp of the data this control response is based on
activeboolSignals if the policy is active (aka publishing actuator_motors)
positionfloat32[3]m [FLU]Position of the vehicle_local_position frame
orientationfloat32[4]Orientation in the vehicle_attitude frame but using the FLU convention as a unit quaternion (w, x, y, z)
linear_velocityfloat32[3]m/s [FLU]Linear velocity in the vehicle_local_position frame
angular_velocityfloat32[3]rad/s [FLU]Angular velocity in the body frame
previous_actionfloat32[4][-1 : 1]Previous action. Motor commands normalized to [-1, 1]

Constants

명칭형식Value설명
MESSAGE_VERSIONuint320
ACTION_DIMuint84Policy output dimensionality (for quadrotors)

Source Message

Source file (GitHub)

Details

Click here to see original file

c
# Raptor Input

# The exact inputs to the Raptor foundation policy.
# Having access to the exact inputs helps with debugging and post-hoc analysis.

uint32 MESSAGE_VERSION = 0

uint64 timestamp # [us] Time since system start
uint64 timestamp_sample # [us] Sampling timestamp of the data this control response is based on
bool active # Signals if the policy is active (aka publishing actuator_motors)
float32[3] position # [m] [@frame FLU] Position of the vehicle_local_position frame
float32[4] orientation # [-] Orientation in the vehicle_attitude frame but using the FLU convention as a unit quaternion (w, x, y, z)
float32[3] linear_velocity # [m/s] [@frame FLU] Linear velocity in the vehicle_local_position frame
float32[3] angular_velocity # [rad/s]  [@frame FLU] Angular velocity in the body frame
uint8 ACTION_DIM = 4 # Policy output dimensionality (for quadrotors)
float32[4] previous_action # [@range -1, 1] Previous action. Motor commands normalized to [-1, 1]

# TOPICS raptor_input