跳转到内容

UBot Attitude Command

C++
FUBotAttitudeCommand
模块
UBotCore · UBotCore 0.1.2
节点
Break · Make
头文件
Source/UBotCore/Public/UBotActuatorInterface.h

飞行器的姿态请求:目标姿态,加推力或爬升速度。

字段类型蓝图说明
OrientationOrientationQuat结构体读写期望姿态,机体到世界的四元数,用 UE 的坐标轴。
Use Yaw RatebUseYawRateBoolean读写为 true 时航向按偏航角速度转动,不再跟随 Orientation 的偏航角。
Yaw Rate Radians Per SecondYawRateRadiansPerSecondFloat (double)读写使用偏航角速度时的偏航速度,单位 rad/s,用 UE 的旋转方向(正值向右偏航)。
Use ThrustbUseThrustBoolean读写为 true 时使用 Normalized Thrust;否则由接收者自己调节推力,以达到 Vertical Velocity。
Normalized ThrustNormalizedThrustFloat (double)读写总推力占飞行器最大总推力的比例,范围 0 到 1。
Vertical Velocity Meters Per SecondVerticalVelocityMetersPerSecondFloat (double)读写不使用推力时的爬升速度,单位 m/s,向上为正;0 表示保持高度。
Timestamp SecondsTimestampSecondsFloat (double)读写发出指令时的仿真时间,单位秒。
SourceSourceName读写来源标签,格式自由,比如 ROS、MCP、Blueprint。

拆分结构体 · Break:FUBotAttitudeCommand

把 UBot Attitude Command 拆成姿态、推力、偏航角速度、时间戳和来源等字段。

引脚方向类型说明
UBot Attitude Command输入UBot Attitude Command结构体
Orientation输出Quat结构体Desired attitude, body to world, UE axes.
Use Yaw RatebUseYawRate输出BooleanTurn the heading at Yaw Rate instead of following the yaw of Orientation.
Yaw Rate Radians Per Second高级输出Float (double)Yaw rate when Use Yaw Rate is set, rad/s, UE rotation sense (+ turns right).
Use Thrust高级bUseThrust输出BooleanUse Normalized Thrust. Otherwise the receiver sets the thrust itself to fly Vertical Velocity.
Normalized Thrust高级输出Float (double)Collective thrust as a share of the vehicle's maximum, 0..1.
Vertical Velocity Meters Per Second高级输出Float (double)Climb rate when Use Thrust is not set, m/s (+ up). 0 holds the altitude.
Timestamp Seconds高级输出Float (double)uBot sim time at which the command was issued.
Source高级输出NameFree-form origin tag, e.g. "ROS", "MCP", "Blueprint".

构造结构体 · Make:FUBotAttitudeCommand

用姿态、推力、偏航角速度、时间戳和来源等字段构造一个 UBot Attitude Command。

引脚方向类型默认值说明
Orientation输入Quat结构体(0.0, 0.0, 0.000000,W=1.000000)Desired attitude, body to world, UE axes.
Use Yaw RatebUseYawRate输入BooleanfalseTurn the heading at Yaw Rate instead of following the yaw of Orientation.
Yaw Rate Radians Per Second高级输入Float (double)0.0Yaw rate when Use Yaw Rate is set, rad/s, UE rotation sense (+ turns right).
Use Thrust高级bUseThrust输入BooleanfalseUse Normalized Thrust. Otherwise the receiver sets the thrust itself to fly Vertical Velocity.
Normalized Thrust高级输入Float (double)0.0Collective thrust as a share of the vehicle's maximum, 0..1.
Vertical Velocity Meters Per Second高级输入Float (double)0.0Climb rate when Use Thrust is not set, m/s (+ up). 0 holds the altitude.
Timestamp Seconds高级输入Float (double)0.0uBot sim time at which the command was issued.
Source高级输入NameNoneFree-form origin tag, e.g. "ROS", "MCP", "Blueprint".
UBot Attitude Command输出UBot Attitude Command结构体