Appearance
EZXRSpatialComputingManager
说明
该脚本用于管理空间计算的实现。
该脚本管理相机的启动和关闭,管理相机图像的分发。
接口
属性
| static Instance | 该脚本的当前单例 |
|---|---|
| SC_VPSResultState currentVpsResultState | 当前 VPS 定位状态 |
| SpatialComputingController CurrentSCController | 当前定位实际操作句柄 |
| LocCam locCamType | 默认使用 RGB 相机作为定位数据源,可按照项目需求在灰度相机与 RGB 相机之间切换 |
| bool useCameraAE_forMovingMode | 开启定位曝光策略功能,默认开启,用于优化运动状态下的图像获取 |
| Transform m_CameraOffsetTransform | 用于绑定 BodyRig,应用后可生效空间定位结果 |
| string locRequestURL | 空间定位的 url,具体项目请联系易现商务获取 |
| LocRequestMode requestLocMode | 定位请求模式,默认 LocRequestAuto 自动定位模式,还可以设置“LocRequestManual”用于开发者根据需求主动调用触发定位请求 |
| bool UseImgUndistortion | 是否使用图像去畸变 |
方法
| startSCLocSession(string path) | 初始化定位 VPS 模块,并传入配置包资源路径,路径为空则使用默认参数 |
|---|---|
| stopSCLocSession() | 终止定位 VPS 模块 |
| TrigerApplyLocResultImmediately() | 主动触发一次定位请求 |
| EnableCameraAE_ForMovingMode(bool) | 切换应用曝光运动适配模式 |