-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(localization_error_monitor): rework parameters (#6156)
* refactor(localization_error_monitor): rework parameters Signed-off-by: Yamato Ando <[email protected]> * style(pre-commit): autofix --------- Signed-off-by: Yamato Ando <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
localization/localization_error_monitor/schema/localization_error_monitor.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Localization Error Monitor node", | ||
"type": "object", | ||
"definitions": { | ||
"localization_error_monitor": { | ||
"type": "object", | ||
"properties": { | ||
"scale": { | ||
"type": "number", | ||
"default": 3.0, | ||
"description": "scale factor for monitored values" | ||
}, | ||
"error_ellipse_size": { | ||
"type": "number", | ||
"default": 1.5, | ||
"description": "error threshold for long radius of confidence ellipse [m]" | ||
}, | ||
"warn_ellipse_size": { | ||
"type": "number", | ||
"default": 1.2, | ||
"description": "warning threshold for long radius of confidence ellipse [m]" | ||
}, | ||
"error_ellipse_size_lateral_direction": { | ||
"type": "number", | ||
"default": 0.3, | ||
"description": "error threshold for size of confidence ellipse along lateral direction [m]" | ||
}, | ||
"warn_ellipse_size_lateral_direction": { | ||
"type": "number", | ||
"default": 0.25, | ||
"description": "warning threshold for size of confidence ellipse along lateral direction [m]" | ||
} | ||
}, | ||
"required": [ | ||
"scale", | ||
"error_ellipse_size", | ||
"warn_ellipse_size", | ||
"error_ellipse_size_lateral_direction", | ||
"warn_ellipse_size_lateral_direction" | ||
] | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/localization_error_monitor" | ||
} | ||
}, | ||
"required": ["ros__parameters"] | ||
} | ||
}, | ||
"required": ["/**"] | ||
} |