AutoResetEstimateComponent
最低版本: 2.0.0最后更新: 2021/1/21组件功能:
AutoResetEstimateComponent 是对于 ResetEstimateComponent 的包装,用于机器人在运动过程中监听底盘定位丢失事件,自动触发重定位。
支持平台:
平台 | 是否支持 |
豹小秘 | 是 |
豹花/大瓶 | 否 |
豹小秘Mini | 是 |
参数
参数名 | 类型 |
param | AutoResetEstimateParam |
AutoResetEstimateParam
属性 | JS 类型 | Java类型 | 默认值 | 必填 | 说明 | 最低版本 |
param_reset_estimate_count | number | int | 5 | no | 重定位次数 | 2.0.0 |
param_reset_estimate_interval | number | long | 500 | no | 重定位时间间隔,单位ms | 2.0.0 |
param_reset_estimate_type | RelocationType | int | RelocationType.TYPE_VISION | no | 重定位类型 | 2.0.0 |
param_reset_estimate_pose | Pose | undefined | no | 重定位 pos | 2.0.0 | |
param_reset_estimate_name | string | String | '' | no | 重定位地点 | 2.0.0 |
错误码
返回错误 | 值 | 描述 |
ERROR_PARAMS_JSON_PARSER_ERROR | -32610011 | 参数错误 |
状态码
返回状态 | 值 | 描述 |
STATUS_AUTO_RESET_ESTIMATE_SUCCESS | 32730007 | 重定位成功 |
STATUS_AUTO_RESET_ESTIMATE_FAIL | 32730008 | 重定位失败 |