跳转到内容

UBot Frame Header

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

所有 uBot 传感器帧共用的帧头。

字段类型蓝图说明
Sensor IdSensorIdString只读传感器 id(Sensor Id)。传感器上留空时用组件名。
Frame IdFrameIdString只读传感器所在的坐标系名(Frame Id)。传感器上留空时等于传感器 id。
SequenceSequenceInteger64只读帧序号,每次采样加 1。
Timestamp SecondsTimestampSecondsFloat (double)只读采样时刻的 uBot 仿真时间,单位秒。它就是 World 的游戏时间,会随暂停停止、随时间膨胀变快或变慢。
ValidbValidBoolean只读本帧数据是否可用;只有 Status 为 Valid 时为 true。
StatusStatusEUBot Sample Status枚举只读本次采样的结果,取值见 UBot Sample Status。

拆分结构体 · Break:FUBotFrameHeader

把帧头拆成 Sensor Id、Frame Id、Sequence、Timestamp Seconds、Valid 和 Status。

引脚方向类型说明
UBot Frame Header输入UBot Frame Header结构体
Sensor Id输出String
Frame Id输出String
Sequence高级输出Integer64
Timestamp Seconds高级输出Float (double)uBot simulation time (UBot::Clock::GetSimTimeSeconds) at which the sample was taken.
Valid高级bValid输出Boolean
Status高级输出EUBot Sample Status枚举

构造结构体 · Make:FUBotFrameHeader

用各字段构造一个 UBot Frame Header。

引脚方向类型
UBot Frame Header输出UBot Frame Header结构体