Skip to content

TrajectorySetpoint (UORB message)

Trajectory setpoint in NED frame. Input to PID position controller. Needs to be kinematically consistent and feasible for smooth flight. setting a value to NaN means the state should not be controlled.

TOPICS: trajectory_setpoint

Fields

参数名类型Unit [Frame]Range/Enum描述
timestampuint64time since system start (microseconds)
位置float32[3]in meters
速度float32[3]in meters/second
accelerationfloat32[3]in meters/second^2
jerkfloat32[3]in meters/second^3 (for logging only)
yawfloat32euler angle of desired attitude in radians -PI..+PI
yawspeedfloat32angular velocity around NED frame z-axis in radians/second

Constants

参数名类型描述
MESSAGE_VERSIONuint320

Source Message

Source file (GitHub)

Details

Click here to see original file

c
# Trajectory setpoint in NED frame
# Input to PID position controller.
# Needs to be kinematically consistent and feasible for smooth flight.
# setting a value to NaN means the state should not be controlled

uint32 MESSAGE_VERSION = 0

uint64 timestamp # time since system start (microseconds)

# NED local world frame
float32[3] position # in meters
float32[3] velocity # in meters/second
float32[3] acceleration # in meters/second^2
float32[3] jerk # in meters/second^3 (for logging only)

float32 yaw # euler angle of desired attitude in radians -PI..+PI
float32 yawspeed # angular velocity around NED frame z-axis in radians/second