跳转到内容

UBot Multirotor State

C++
FUBotMultirotorState
模块
UBotAerial · UBotAerial 0.1.0
节点
Break · Make
头文件
Source/UBotAerial/Public/UBotAerialTypes.h

多旋翼在最近一个物理步的真值状态,SI 单位,UE 世界坐标轴。

字段类型蓝图说明
Position MetersPositionMetersVector只读根组件在世界中的位置,单位 m(UE 坐标轴:X 向前,Y 向右,Z 向上)。
OrientationOrientationQuat结构体只读机体姿态(机体系到世界系)。
Linear Velocity Meters Per SecondLinearVelocityMetersPerSecondVector只读世界系线速度,单位 m/s。
Angular Velocity Radians Per SecondAngularVelocityRadiansPerSecondVector只读机体系角速度,单位 rad/s,采用 UE 的转向(+Z 为向右偏航)。
Linear Acceleration Meters Per Second SquaredLinearAccelerationMetersPerSecondSquaredVector只读世界系线加速度,取最近一个物理步,单位 m/s²。
Specific Force Meters Per Second SquaredSpecificForceMetersPerSecondSquaredVector只读机体上理想加速度计的读数(加速度减去重力,机体系),单位 m/s²。悬停时 Z 轴约为 +9.81。
Rotor Speeds Radians Per SecondRotorSpeedsRadiansPerSecondFloat (double)数组只读按电机顺序排列的旋翼转速,单位 rad/s;简化飞行模型为空。
Sim Time SecondsSimTimeSecondsFloat (double)只读这个物理步的 uBot 仿真时间,单位 s。

拆分结构体 · Break:FUBotMultirotorState

把 UBot Multirotor State 拆成位置、姿态、线速度、角速度、线加速度、比力、旋翼转速和仿真时间。

引脚方向类型说明
UBot Multirotor State输入UBot Multirotor State结构体
Position Meters输出VectorPosition of the root in the world, m (UE axes: X forward, Y right, Z up).
Orientation输出Quat结构体Orientation of the body (body to world).
Linear Velocity Meters Per Second高级输出VectorLinear velocity in the world frame, m/s.
Angular Velocity Radians Per Second高级输出VectorAngular velocity in the body frame, rad/s, UE rotation sense (+Z yaws right).
Linear Acceleration Meters Per Second Squared高级输出VectorLinear acceleration in the world frame over the latest step, m/s².
Specific Force Meters Per Second Squared高级输出VectorWhat an ideal accelerometer on the body reads (acceleration minus gravity, in the body frame), m/s². Hover reads about +9.81 on Z.
Rotor Speeds Radians Per Second高级输出Float (double)数组Rotor speeds in motor order, rad/s (empty for the simplified flight model).
Sim Time Seconds高级输出Float (double)uBot sim time of this step, s.

构造结构体 · Make:FUBotMultirotorState

用各字段组装一个 UBot Multirotor State。

引脚方向类型
UBot Multirotor State输出UBot Multirotor State结构体