RflySimSDK v4.01
RflySimSDK说明文档
载入中...
搜索中...
未找到
VisionSensorReqNew类 参考

Public 成员函数

 __init__ (self, iv=None)
 CopyData (self, iv)

Public 属性

int checksum = 0
int SeqID = 0
int bitmask = 0
int TypeID = 0
int TargetCopter = 0
int TargetMountType = 0
int DataWidth = 0
int DataHeight = 0
int DataCheckFreq = 0
list SendProtocol = [0] * 8
int CameraFOV = 0
int EularOrQuat = 0
list SensorAngQuat = [0, 0, 0, 0]
list SensorPosXYZ = [0, 0, 0]
list SensorAngEular = [0, 0, 0]
list otherParams = [0] * 16

详细描述

This is a class (C++ struct) that sent to UE4 to request and set camera parameters.
# struct VisionSensorReq {
    uint16 checksum; //数据校验位,12345
    uint16 SeqID; //内存序号ID
    uint32 bitmask; // 控制
    uint16 TypeID; //传感器类型ID
    uint16 TargetCopter; //绑定的目标飞机     //可改变
    uint16 TargetMountType; //绑定的类型    //可改变
    uint16 DataWidth;   //数据或图像宽度
    uint16 DataHeight; //数据或图像高度
    uint16 DataCheckFreq; //检查数据更新频率
    uint16 SendProtocol[8]; //传输类型(共享内存、UDP传输无压缩、UDP视频串流),IP地址,端口号,...
    float CameraFOV;  //相机视场角(仅限视觉类传感器)  //可改变
    float SensorPosXYZ[3]; // 传感器安装位置    //可改变
    float EularOrQuat; //选择欧拉角或四元数方式,大于0.5就是四元数
    float SensorAngEular[3]; //传感器安装角度   //可改变
    float SensorAngQuat[4]; //传感器安装四元数   //可改变
    float otherParams[16]; //预留的16位数据位
# }2H1I14H28f

该类的文档由以下文件生成: