ResetEstimateComponent
最后更新: 2021/1/21组件功能:
用于机器人重定位。
支持平台:
平台 | 是否支持 |
豹小秘 | 是 |
豹花/大瓶 | 否 |
豹小秘 Mini | 是 |
参数
参数名 | 类型 |
param | ResetEstimateParam |
ResetEstimateParam
属性 | 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_name | string | String | '' | no | 重定位地点 | 2.0.0 |
param_reset_estimate_pose | Pose | undefined | no | 重定位 pos | 2.0.0 |
结果码
返回错误 | 值 | 描述 |
RESULT_SUCCESS | 32610001 | 重定位成功 |
RESULT_RESET_ESTIMATE_FAIL | 32610006 | 重定位失败 |
错误码
返回错误 | 值 | 描述 |
ERROR_PARAMS_JSON_PARSER_ERROR | -32610011 | 参数错误 |