跳转到内容

UBot Velocity Command

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

机体系下的速度请求。生产者先把自己的坐标约定换成 UE 的,再填写各字段。

字段类型蓝图说明
Linear Velocity Meters Per SecondLinearVelocityMetersPerSecondVector读写机体系线速度,用 UE 的坐标轴(X 前、Y 右、Z 上),单位 m/s。机体会倾斜的接收者(多旋翼)按航向坐标系理解:X、Y 沿当前航向,Z 向上。
Angular Velocity Radians Per SecondAngularVelocityRadiansPerSecondVector读写机体系角速度,用 UE 的坐标轴和旋转方向(+Z 是向右偏航),单位 rad/s。
Timestamp SecondsTimestampSecondsFloat (double)读写发出指令时的仿真时间,单位秒。
SourceSourceName读写来源标签,格式自由,比如 ROS、MCP、Blueprint。

拆分结构体 · Break:FUBotVelocityCommand

把 UBot Velocity Command 拆成线速度、角速度、时间戳和来源。

引脚方向类型说明
UBot Velocity Command输入UBot Velocity Command结构体
Linear Velocity Meters Per Second输出VectorBody frame in UE axes (X forward, Y right, Z up). Linear in m/s. Receivers whose body tilts (multirotors) read it in the heading frame: X and Y along the current heading, Z up.
Angular Velocity Radians Per Second输出VectorBody frame in UE axes and UE rotation sense (+Z = yaw to the right). rad/s.
Timestamp Seconds输出Float (double)uBot sim time at which the command was issued.
Source输出NameFree-form origin tag, e.g. "ROS", "MCP", "Blueprint".

构造结构体 · Make:FUBotVelocityCommand

用线速度、角速度、时间戳和来源构造一个 UBot Velocity Command。

引脚方向类型默认值说明
Linear Velocity Meters Per Second输入Vector0.000000,0.000000,0.000000Body frame in UE axes (X forward, Y right, Z up). Linear in m/s. Receivers whose body tilts (multirotors) read it in the heading frame: X and Y along the current heading, Z up.
Angular Velocity Radians Per Second输入Vector0.000000,0.000000,0.000000Body frame in UE axes and UE rotation sense (+Z = yaw to the right). rad/s.
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 Velocity Command输出UBot Velocity Command结构体