Skip to content

Commit 3e3df5b

Browse files
docs(autoware_multi_object_tracker): add default values on the schema json (#8179)
* Refractored the parameters, build the schema file, updated the readme file. Signed-off-by: Boyang <tby@udel.edu> * style(pre-commit): autofix --------- Signed-off-by: Boyang <tby@udel.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent a5d77b4 commit 3e3df5b

File tree

2 files changed

+176
-18
lines changed

2 files changed

+176
-18
lines changed

perception/autoware_multi_object_tracker/schema/data_association_matrix.schema.json

+44-6
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,80 @@
1111
"description": "Assignment table for data association.",
1212
"items": {
1313
"type": "integer"
14-
}
14+
},
15+
"default": [
16+
1, 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
"description": "Maximum distance table for data association.",
1924
"items": {
2025
"type": "number"
21-
}
26+
},
27+
"default": [
28+
4.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 4.0, 2.0, 5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 4.0,
29+
2.0, 5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 4.0, 2.0, 5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 4.0, 2.0,
30+
5.0, 5.0, 5.0, 1.0, 1.0, 1.0, 3.0, 1.0, 1.0, 1.0, 1.0, 3.0, 3.0, 2.0, 3.0, 1.0, 1.0,
31+
1.0, 1.0, 3.0, 3.0, 2.0, 2.0, 1.0, 1.0, 1.0, 1.0, 3.0, 3.0, 2.0
32+
]
2233
},
2334
"max_area_matrix": {
2435
"type": "array",
2536
"description": "Maximum area table for data association.",
2637
"items": {
2738
"type": "number"
28-
}
39+
},
40+
"default": [
41+
100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 12.1, 12.1, 36.0, 60.0, 60.0,
42+
10000.0, 10000.0, 10000.0, 36.0, 12.1, 36.0, 60.0, 60.0, 10000.0, 10000.0, 10000.0,
43+
60.0, 12.1, 36.0, 60.0, 60.0, 10000.0, 10000.0, 10000.0, 60.0, 12.1, 36.0, 60.0, 60.0,
44+
10000.0, 10000.0, 10000.0, 2.5, 10000.0, 10000.0, 10000.0, 10000.0, 2.5, 2.5, 1.0, 2.5,
45+
10000.0, 10000.0, 10000.0, 10000.0, 2.5, 2.5, 1.0, 2.0, 10000.0, 10000.0, 10000.0,
46+
10000.0, 1.5, 1.5, 1.0
47+
]
2948
},
3049
"min_area_matrix": {
3150
"type": "array",
3251
"description": "Minimum area table for data association.",
3352
"items": {
3453
"type": "number"
35-
}
54+
},
55+
"default": [
56+
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.6, 3.6, 6.0, 10.0, 10.0, 0.0, 0.0, 0.0, 6.0,
57+
3.6, 6.0, 10.0, 10.0, 0.0, 0.0, 0.0, 10.0, 3.6, 6.0, 10.0, 10.0, 0.0, 0.0, 0.0, 10.0,
58+
3.6, 6.0, 10.0, 10.0, 0.0, 0.0, 0.0, 0.001, 0.0, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1, 0.001,
59+
0.0, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1, 0.001, 0.0, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1
60+
]
3661
},
3762
"max_rad_matrix": {
3863
"type": "array",
3964
"description": "Maximum angle table for data association.",
4065
"items": {
4166
"type": "number"
42-
}
67+
},
68+
"default": [
69+
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,
70+
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,
71+
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,
72+
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,
73+
3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15, 3.15
74+
]
4375
},
4476
"min_iou_matrix": {
4577
"type": "array",
4678
"description": "A matrix that represents the minimum Intersection over Union (IoU) limit allowed for assignment.",
4779
"items": {
4880
"type": "number"
49-
}
81+
},
82+
"default": [
83+
0.0001, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.2, 0.2, 0.2, 0.1, 0.1, 0.1, 0.1,
84+
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,
85+
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,
86+
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.0001
87+
]
5088
}
5189
},
5290
"required": [

perception/autoware_multi_object_tracker/schema/input_channels.schema.json

+132-12
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,138 @@
4141
"input_channels": {
4242
"type": "object",
4343
"properties": {
44-
"detected_objects": { "$ref": "#/definitions/input_channel" },
45-
"lidar_clustering": { "$ref": "#/definitions/input_channel" },
46-
"lidar_centerpoint": { "$ref": "#/definitions/input_channel" },
47-
"lidar_centerpoint_validated": { "$ref": "#/definitions/input_channel" },
48-
"lidar_apollo": { "$ref": "#/definitions/input_channel" },
49-
"lidar_apollo_validated": { "$ref": "#/definitions/input_channel" },
50-
"lidar_pointpainitng": { "$ref": "#/definitions/input_channel" },
51-
"lidar_pointpainting_validated": { "$ref": "#/definitions/input_channel" },
52-
"camera_lidar_fusion": { "$ref": "#/definitions/input_channel" },
53-
"detection_by_tracker": { "$ref": "#/definitions/input_channel" },
54-
"radar": { "$ref": "#/definitions/input_channel" },
55-
"radar_far": { "$ref": "#/definitions/input_channel" }
44+
"detected_objects": {
45+
"$ref": "#/definitions/input_channel",
46+
"default": {
47+
"topic": "/perception/object_recognition/detection/objects",
48+
"can_spawn_new_tracker": true,
49+
"optional": {
50+
"name": "detected_objects",
51+
"short_name": "all"
52+
}
53+
}
54+
},
55+
"lidar_clustering": {
56+
"$ref": "#/definitions/input_channel",
57+
"default": {
58+
"topic": "/perception/object_recognition/detection/clustering/objects",
59+
"can_spawn_new_tracker": true,
60+
"optional": {
61+
"name": "clustering",
62+
"short_name": "Lcl"
63+
}
64+
}
65+
},
66+
"lidar_centerpoint": {
67+
"$ref": "#/definitions/input_channel",
68+
"default": {
69+
"topic": "/perception/object_recognition/detection/centerpoint/objects",
70+
"can_spawn_new_tracker": true,
71+
"optional": {
72+
"name": "centerpoint",
73+
"short_name": "Lcp"
74+
}
75+
}
76+
},
77+
"lidar_centerpoint_validated": {
78+
"$ref": "#/definitions/input_channel",
79+
"default": {
80+
"topic": "/perception/object_recognition/detection/centerpoint/validation/objects",
81+
"can_spawn_new_tracker": true,
82+
"optional": {
83+
"name": "centerpoint",
84+
"short_name": "Lcp"
85+
}
86+
}
87+
},
88+
"lidar_apollo": {
89+
"$ref": "#/definitions/input_channel",
90+
"default": {
91+
"topic": "/perception/object_recognition/detection/apollo/objects",
92+
"can_spawn_new_tracker": true,
93+
"optional": {
94+
"name": "apollo",
95+
"short_name": "Lap"
96+
}
97+
}
98+
},
99+
"lidar_apollo_validated": {
100+
"$ref": "#/definitions/input_channel",
101+
"default": {
102+
"topic": "/perception/object_recognition/detection/apollo/validation/objects",
103+
"can_spawn_new_tracker": true,
104+
"optional": {
105+
"name": "apollo",
106+
"short_name": "Lap"
107+
}
108+
}
109+
},
110+
"lidar_pointpainitng": {
111+
"$ref": "#/definitions/input_channel",
112+
"default": {
113+
"topic": "/perception/object_recognition/detection/pointpainting/objects",
114+
"can_spawn_new_tracker": true,
115+
"optional": {
116+
"name": "pointpainting",
117+
"short_name": "Lpp"
118+
}
119+
}
120+
},
121+
"lidar_pointpainting_validated": {
122+
"$ref": "#/definitions/input_channel",
123+
"default": {
124+
"topic": "/perception/object_recognition/detection/pointpainting/validation/objects",
125+
"can_spawn_new_tracker": true,
126+
"optional": {
127+
"name": "pointpainting",
128+
"short_name": "Lpp"
129+
}
130+
}
131+
},
132+
"camera_lidar_fusion": {
133+
"$ref": "#/definitions/input_channel",
134+
"default": {
135+
"topic": "/perception/object_recognition/detection/clustering/camera_lidar_fusion/objects",
136+
"can_spawn_new_tracker": true,
137+
"optional": {
138+
"name": "camera_lidar_fusion",
139+
"short_name": "CLf"
140+
}
141+
}
142+
},
143+
"detection_by_tracker": {
144+
"$ref": "#/definitions/input_channel",
145+
"default": {
146+
"topic": "/perception/object_recognition/detection/detection_by_tracker/objects",
147+
"can_spawn_new_tracker": false,
148+
"optional": {
149+
"name": "detection_by_tracker",
150+
"short_name": "dbT"
151+
}
152+
}
153+
},
154+
"radar": {
155+
"$ref": "#/definitions/input_channel",
156+
"default": {
157+
"topic": "/sensing/radar/detected_objects",
158+
"can_spawn_new_tracker": true,
159+
"optional": {
160+
"name": "radar",
161+
"short_name": "R"
162+
}
163+
}
164+
},
165+
"radar_far": {
166+
"$ref": "#/definitions/input_channel",
167+
"default": {
168+
"topic": "/perception/object_recognition/detection/radar/far_objects",
169+
"can_spawn_new_tracker": true,
170+
"optional": {
171+
"name": "radar_far",
172+
"short_name": "Rf"
173+
}
174+
}
175+
}
56176
},
57177
"required": [
58178
"detected_objects",

0 commit comments

Comments
 (0)