跳转到内容

UBot Sensor

C++
UUBotSensor
父类
UInterface
类型
接口 · 抽象类 · 可作为蓝图父类
模块
UBotCore · UBotCore 0.1.2
头文件
Source/UBotCore/Public/UBotSensorInterface.h

能产生 uBot 样本的对象所实现的接口。uBotSensor 的全部传感器组件都实现了它,蓝图 Actor 和组件也可以实现。

纯函数 · UUBotSensor.GetLatestSensorHeader

返回最近一次采样的帧头。

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

纯函数 · UUBotSensor.GetSensorFrameComponent

返回坐标系对应的场景组件,TF 用它的变换;可以为空。

引脚方向类型
Return Value输出Scene Component对象引用

纯函数 · UUBotSensor.GetSensorFrameId

返回传感器所在的坐标系名(Frame Id)。

引脚方向类型
Return Value输出String

纯函数 · UUBotSensor.GetSensorId

返回传感器 id(Sensor Id)。

引脚方向类型
Return Value输出String

纯函数 · UUBotSensor.GetSensorType

返回稳定的短类型名,比如 Pose、Odometry、IMU、Lidar2D、Lidar3D、RGBCamera、DepthCamera。

引脚方向类型
Return Value输出Name

纯函数 · UUBotSensor.IsSensorRunning

传感器是否正在按频率自动采样。

引脚方向类型
Return Value输出Boolean