Skip to content

Commit 2d25b40

Browse files
committed
fix json schema
Signed-off-by: Yamato Ando <yamato.ando@tier4.jp>
1 parent 043a7e9 commit 2d25b40

File tree

2 files changed

+57
-55
lines changed

2 files changed

+57
-55
lines changed

localization/autoware_pose_covariance_modifier/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ the [pose_twist_estimator.launch.xml](../../launch/tier4_localization_launch/lau
156156
The parameters are set
157157
in [config/pose_covariance_modifier.param.yaml](config/pose_covariance_modifier.param.yaml) .
158158

159-
{{ json_to_markdown("
160-
localization/autoware_pose_covariance_modifier/schema/pose_covariance_modifier.schema.json") }}
159+
{{ json_to_markdown(
160+
"localization/autoware_pose_covariance_modifier/schema/pose_covariance_modifier.schema.json") }}
161161

162162
## FAQ
163163

localization/autoware_pose_covariance_modifier/schema/pose_covariance_modifier.schema.json

+55-53
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,68 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Pose Covariance Modifier Node Parameters",
44
"type": "object",
5-
"actual_parameters": {
6-
"type": "object",
7-
"properties": {
8-
"threshold_gnss_stddev_yaw_deg_max": {
9-
"type": "number",
10-
"default": 0.3,
11-
"description": "If GNSS yaw standard deviation values are larger than this, trust only NDT"
12-
},
13-
"threshold_gnss_stddev_z_max": {
14-
"type": "number",
15-
"default": 0.1,
16-
"description": "If GNSS position Z standard deviation values are larger than this, trust only NDT"
17-
},
18-
"threshold_gnss_stddev_xy_bound_lower": {
19-
"type": "number",
20-
"default": 0.1,
21-
"description": "If GNSS position XY standard deviation values are lower than this, trust only GNSS"
22-
},
23-
"threshold_gnss_stddev_xy_bound_upper": {
24-
"type": "number",
25-
"default": 0.25,
26-
"description": "If GNSS position XY standard deviation values are higher than this, trust only NDT"
27-
},
28-
"ndt_std_dev_bound_lower": {
29-
"type": "number",
30-
"default": 0.15,
31-
"description": "Lower bound value for standard deviation of NDT positions (x, y, z) when used with GNSS"
32-
},
33-
"ndt_std_dev_bound_upper": {
34-
"type": "number",
35-
"default": 0.3,
36-
"description": "Upper bound value for standard deviation of NDT positions (x, y, z) when used with GNSS"
37-
},
38-
"gnss_pose_timeout_sec": {
39-
"type": "number",
40-
"default": 1.0,
41-
"description": "If GNSS data is not received for this duration, trust only NDT"
5+
"definitions": {
6+
"pose_covariance_modifier": {
7+
"type": "object",
8+
"properties": {
9+
"threshold_gnss_stddev_yaw_deg_max": {
10+
"type": "number",
11+
"default": 0.3,
12+
"description": "If GNSS yaw standard deviation values are larger than this, trust only NDT"
13+
},
14+
"threshold_gnss_stddev_z_max": {
15+
"type": "number",
16+
"default": 0.1,
17+
"description": "If GNSS position Z standard deviation values are larger than this, trust only NDT"
18+
},
19+
"threshold_gnss_stddev_xy_bound_lower": {
20+
"type": "number",
21+
"default": 0.1,
22+
"description": "If GNSS position XY standard deviation values are lower than this, trust only GNSS"
23+
},
24+
"threshold_gnss_stddev_xy_bound_upper": {
25+
"type": "number",
26+
"default": 0.25,
27+
"description": "If GNSS position XY standard deviation values are higher than this, trust only NDT"
28+
},
29+
"ndt_std_dev_bound_lower": {
30+
"type": "number",
31+
"default": 0.15,
32+
"description": "Lower bound value for standard deviation of NDT positions (x, y, z) when used with GNSS"
33+
},
34+
"ndt_std_dev_bound_upper": {
35+
"type": "number",
36+
"default": 0.3,
37+
"description": "Upper bound value for standard deviation of NDT positions (x, y, z) when used with GNSS"
38+
},
39+
"gnss_pose_timeout_sec": {
40+
"type": "number",
41+
"default": 1.0,
42+
"description": "If GNSS data is not received for this duration, trust only NDT"
43+
},
44+
"enable_debug_topics": {
45+
"type": "boolean",
46+
"default": true,
47+
"description": "Publish additional debug topics"
48+
}
4249
},
43-
"enable_debug_topics": {
44-
"type": "boolean",
45-
"default": true,
46-
"description": "Publish additional debug topics"
47-
}
48-
},
49-
"required": [
50-
"threshold_gnss_stddev_yaw_deg_max",
51-
"threshold_gnss_stddev_z_max",
52-
"threshold_gnss_stddev_xy_bound_lower",
53-
"threshold_gnss_stddev_xy_bound_upper",
54-
"gnss_pose_timeout_sec",
55-
"enable_debug_topics"
56-
],
57-
"additionalProperties": false
50+
"required": [
51+
"threshold_gnss_stddev_yaw_deg_max",
52+
"threshold_gnss_stddev_z_max",
53+
"threshold_gnss_stddev_xy_bound_lower",
54+
"threshold_gnss_stddev_xy_bound_upper",
55+
"gnss_pose_timeout_sec",
56+
"enable_debug_topics"
57+
],
58+
"additionalProperties": false
59+
}
5860
},
5961
"properties": {
6062
"/**": {
6163
"type": "object",
6264
"properties": {
6365
"ros__parameters": {
64-
"$ref": "#/actual_parameters"
66+
"$ref": "#/definitions/pose_covariance_modifier"
6567
}
6668
},
6769
"required": ["ros__parameters"],

0 commit comments

Comments
 (0)