Skip to content

Commit 358afad

Browse files
vividftechnolojinpre-commit-ci[bot]
authored andcommittedDec 27, 2024
fix(perception): fix perception docs (autowarefoundation#9766)
* fix: fix perception docs Signed-off-by: vividf <yihsiang.fang@tier4.jp> * fix: fix missing parameter in schema Signed-off-by: vividf <yihsiang.fang@tier4.jp> * Update perception/autoware_object_merger/schema/data_association_matrix.schema.json Co-authored-by: Taekjin LEE <technolojin@gmail.com> * Update perception/autoware_object_merger/schema/data_association_matrix.schema.json Co-authored-by: Taekjin LEE <technolojin@gmail.com> * Update perception/autoware_object_merger/schema/data_association_matrix.schema.json Co-authored-by: Taekjin LEE <technolojin@gmail.com> * Update perception/autoware_object_merger/schema/data_association_matrix.schema.json Co-authored-by: Taekjin LEE <technolojin@gmail.com> * style(pre-commit): autofix * chore: seperate paramters for different nodes Signed-off-by: vividf <yihsiang.fang@tier4.jp> --------- Signed-off-by: vividf <yihsiang.fang@tier4.jp> Co-authored-by: Taekjin LEE <technolojin@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5db48da commit 358afad

File tree

7 files changed

+220
-118
lines changed

7 files changed

+220
-118
lines changed
 

‎perception/autoware_object_merger/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,16 @@ The successive shortest path algorithm is used to solve the data association pro
2525

2626
## Parameters
2727

28+
- object association merger
29+
2830
{{ json_to_markdown("perception/autoware_object_merger/schema/object_association_merger.schema.json") }}
31+
32+
- data association matrix
33+
2934
{{ json_to_markdown("perception/autoware_object_merger/schema/data_association_matrix.schema.json") }}
35+
36+
- overlapped judge
37+
3038
{{ json_to_markdown("perception/autoware_object_merger/schema/overlapped_judge.schema.json") }}
3139

3240
## Tips

‎perception/autoware_object_merger/schema/data_association_matrix.schema.json

+51-10
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,81 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Data Association Matrix Parameters",
44
"type": "object",
5-
"properties": {
6-
"ros__parameters": {
5+
"definitions": {
6+
"data_association_matrix": {
77
"type": "object",
88
"properties": {
99
"can_assign_matrix": {
1010
"type": "array",
1111
"items": {
1212
"type": "number"
1313
},
14-
"description": "Assignment table for data association"
14+
"description": "Assignment table for data association.",
15+
"default": [
16+
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1,
17+
0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0,
18+
0, 0, 0, 1, 1, 1
19+
]
1520
},
1621
"max_dist_matrix": {
1722
"type": "array",
1823
"items": {
1924
"type": "number"
2025
},
21-
"description": "Maximum distance table for data association"
26+
"description": "Maximum distance table for data association.",
27+
"default": [
28+
4.0, 4.0, 5.0, 5.0, 5.0, 2.0, 2.0, 2.0, 4.0, 2.0, 5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 5.0,
29+
5.0, 5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 5.0, 5.0, 5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 5.0, 5.0,
30+
5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 1.0, 3.0, 3.0, 3.0, 2.0, 1.0, 1.0,
31+
1.0, 1.0, 3.0, 3.0, 3.0, 2.0, 1.0, 1.0, 1.0, 1.0, 3.0, 3.0, 2.0
32+
]
2233
},
2334
"max_rad_matrix": {
2435
"type": "array",
2536
"items": {
26-
"type": "number"
37+
"type": "number",
38+
"minimum": 0.0
2739
},
28-
"description": "Maximum angle table for data association. If value is greater than pi, it will be ignored."
40+
"description": "Maximum angle table for data association. If value is greater than pi, it will be ignored.",
41+
"default": [
42+
3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 1.047, 1.047, 1.047, 1.047, 3.15,
43+
3.15, 3.15, 3.15, 1.047, 1.047, 1.047, 1.047, 3.15, 3.15, 3.15, 3.15, 1.047, 1.047,
44+
1.047, 1.047, 3.15, 3.15, 3.15, 3.15, 1.047, 1.047, 1.047, 1.047, 3.15, 3.15, 3.15,
45+
3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15,
46+
3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15
47+
]
2948
},
3049
"min_iou_matrix": {
3150
"type": "array",
3251
"items": {
33-
"type": "number"
52+
"type": "number",
53+
"minimum": 0.0
3454
},
35-
"description": "Minimum IoU threshold matrix for data association. If value is negative, it will be ignored."
55+
"description": "Minimum IoU threshold matrix for data association. If value is negative, it will be ignored.",
56+
"default": [
57+
0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.3, 0.2, 0.2, 0.2, 0.1, 0.1, 0.1, 0.1,
58+
0.2, 0.3, 0.3, 0.3, 0.1, 0.1, 0.1, 0.1, 0.2, 0.3, 0.3, 0.3, 0.1, 0.1, 0.1, 0.1, 0.2,
59+
0.3, 0.3, 0.3, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
60+
0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1
61+
]
62+
}
63+
},
64+
"required": ["can_assign_matrix", "max_dist_matrix", "max_rad_matrix", "min_iou_matrix"],
65+
"additionalProperties": false
66+
}
67+
},
68+
"properties": {
69+
"/**": {
70+
"type": "object",
71+
"properties": {
72+
"ros__parameters": {
73+
"$ref": "#/definitions/data_association_matrix"
3674
}
3775
},
38-
"required": ["can_assign_matrix", "max_dist_matrix", "max_rad_matrix", "min_iou_matrix"]
76+
"required": ["ros__parameters"],
77+
"additionalProperties": false
3978
}
40-
}
79+
},
80+
"required": ["/**"],
81+
"additionalProperties": false
4182
}

‎perception/autoware_object_merger/schema/object_association_merger.schema.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"remove_overlapped_unknown_objects",
4646
"base_link_frame_id",
4747
"priority_mode"
48-
]
48+
],
49+
"additionalProperties": false
4950
}
5051
},
5152
"properties": {
@@ -56,8 +57,10 @@
5657
"$ref": "#/definitions/object_association_merger"
5758
}
5859
},
59-
"required": ["ros__parameters"]
60+
"required": ["ros__parameters"],
61+
"additionalProperties": false
6062
}
6163
},
62-
"required": ["/**"]
64+
"required": ["/**"],
65+
"additionalProperties": false
6366
}

‎perception/autoware_object_merger/schema/overlapped_judge.schema.json

+26-7
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,45 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Overlapped Judge Parameters",
44
"type": "object",
5-
"properties": {
6-
"ros__parameters": {
5+
"definitions": {
6+
"overlapped_judge": {
77
"type": "object",
88
"properties": {
99
"distance_threshold_list": {
1010
"type": "array",
1111
"items": {
1212
"type": "number"
1313
},
14-
"description": "Distance threshold for each class used in judging overlap."
14+
"description": "Distance threshold for each class used in judging overlap.",
15+
"default": [9.0, 9.0, 9.0, 9.0, 9.0, 9.0, 9.0, 9.0]
1516
},
1617
"generalized_iou_threshold": {
1718
"type": "array",
1819
"items": {
19-
"type": "number"
20+
"type": "number",
21+
"minimum": -1.0,
22+
"maximum": 1.0
2023
},
21-
"description": "Generalized IoU threshold for each class."
24+
"description": "Generalized IoU threshold for each class.",
25+
"default": [-0.1, -0.1, -0.1, -0.6, -0.6, -0.1, -0.1, -0.1]
26+
}
27+
},
28+
"required": ["distance_threshold_list", "generalized_iou_threshold"],
29+
"additionalProperties": false
30+
}
31+
},
32+
"properties": {
33+
"/**": {
34+
"type": "object",
35+
"properties": {
36+
"ros__parameters": {
37+
"$ref": "#/definitions/overlapped_judge"
2238
}
2339
},
24-
"required": ["distance_threshold_list", "generalized_iou_threshold"]
40+
"required": ["ros__parameters"],
41+
"additionalProperties": false
2542
}
26-
}
43+
},
44+
"required": ["/**"],
45+
"additionalProperties": false
2746
}

‎perception/autoware_occupancy_grid_map_outlier_filter/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The following video is a sample. Yellow points are high occupancy probability, g
4040

4141
## Parameters
4242

43-
{{ json_to_markdown("perception/occupancy_grid_map_outlier_filter/schema/occupancy_grid_map_outlier_filter.schema.json") }}
43+
{{ json_to_markdown("perception/autoware_occupancy_grid_map_outlier_filter/schema/occupancy_grid_map_outlier_filter.schema.json") }}
4444

4545
## Assumptions / Known limits
4646

‎perception/autoware_probabilistic_occupancy_grid_map/README.md

+23-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,29 @@ You may need to choose `scan_origin_frame` and `gridmap_origin_frame` which mean
2121

2222
### Parameters
2323

24-
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/binary_bayes_filter_updater.schema.json") }}
25-
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/grid_map.schema.json") }}
26-
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/laserscan_based_occupancy_grid_map.schema.json") }}
27-
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/multi_lidar_pointcloud_based_occupancy_grid_map.schema.json") }}
28-
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/pointcloud_based_occupancy_grid_map.schema.json") }}
29-
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/synchronized_grid_map_fusion_node.schema.json") }}
24+
- binary bayes filter updater
25+
26+
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/binary_bayes_filter_updater.schema.json") }}
27+
28+
- grid map
29+
30+
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/grid_map.schema.json") }}
31+
32+
- laserscan based occupancy grid map
33+
34+
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/laserscan_based_occupancy_grid_map.schema.json") }}
35+
36+
- multi lidar pointcloud based occupancy grid map
37+
38+
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/multi_lidar_pointcloud_based_occupancy_grid_map.schema.json") }}
39+
40+
- pointcloud based occupancy grid map
41+
42+
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/pointcloud_based_occupancy_grid_map.schema.json") }}
43+
44+
- synchronized grid map fusion
45+
46+
{{ json_to_markdown("perception/autoware_probabilistic_occupancy_grid_map/schema/synchronized_grid_map_fusion_node.schema.json") }}
3047

3148
### Downsample input pointcloud(Optional)
3249

0 commit comments

Comments
 (0)