Skip to content

Commit 6bf7532

Browse files
refactor(localization_error_monitor): rework parameters (#6156)
* refactor(localization_error_monitor): rework parameters Signed-off-by: Yamato Ando <yamato.ando@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Yamato Ando <yamato.ando@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1a9dbf4 commit 6bf7532

File tree

2 files changed

+57
-7
lines changed

2 files changed

+57
-7
lines changed

localization/localization_error_monitor/README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,4 @@ The package monitors the following two values:
2929

3030
## Parameters
3131

32-
| Name | Type | Description |
33-
| -------------------------------------- | ------ | -------------------------------------------------------------------------------------------- |
34-
| `scale` | double | scale factor for monitored values (default: 3.0) |
35-
| `error_ellipse_size` | double | error threshold for long radius of confidence ellipse [m] (default: 1.0) |
36-
| `warn_ellipse_size` | double | warning threshold for long radius of confidence ellipse [m] (default: 0.8) |
37-
| `error_ellipse_size_lateral_direction` | double | error threshold for size of confidence ellipse along lateral direction [m] (default: 0.3) |
38-
| `warn_ellipse_size_lateral_direction` | double | warning threshold for size of confidence ellipse along lateral direction [m] (default: 0.25) |
32+
{{ json_to_markdown("localization/localization_error_monitor/schema/localization_error_monitor.schema.json") }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameters for Localization Error Monitor node",
4+
"type": "object",
5+
"definitions": {
6+
"localization_error_monitor": {
7+
"type": "object",
8+
"properties": {
9+
"scale": {
10+
"type": "number",
11+
"default": 3.0,
12+
"description": "scale factor for monitored values"
13+
},
14+
"error_ellipse_size": {
15+
"type": "number",
16+
"default": 1.5,
17+
"description": "error threshold for long radius of confidence ellipse [m]"
18+
},
19+
"warn_ellipse_size": {
20+
"type": "number",
21+
"default": 1.2,
22+
"description": "warning threshold for long radius of confidence ellipse [m]"
23+
},
24+
"error_ellipse_size_lateral_direction": {
25+
"type": "number",
26+
"default": 0.3,
27+
"description": "error threshold for size of confidence ellipse along lateral direction [m]"
28+
},
29+
"warn_ellipse_size_lateral_direction": {
30+
"type": "number",
31+
"default": 0.25,
32+
"description": "warning threshold for size of confidence ellipse along lateral direction [m]"
33+
}
34+
},
35+
"required": [
36+
"scale",
37+
"error_ellipse_size",
38+
"warn_ellipse_size",
39+
"error_ellipse_size_lateral_direction",
40+
"warn_ellipse_size_lateral_direction"
41+
]
42+
}
43+
},
44+
"properties": {
45+
"/**": {
46+
"type": "object",
47+
"properties": {
48+
"ros__parameters": {
49+
"$ref": "#/definitions/localization_error_monitor"
50+
}
51+
},
52+
"required": ["ros__parameters"]
53+
}
54+
},
55+
"required": ["/**"]
56+
}

0 commit comments

Comments
 (0)