Skip to content

Commit c89ffba

Browse files
committed
refactor(input_channels): restructure flags for input channel properties
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
1 parent 1a1b9ef commit c89ffba

File tree

1 file changed

+114
-17
lines changed

1 file changed

+114
-17
lines changed

perception/autoware_multi_object_tracker/schema/input_channels.schema.json

+114-17
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,35 @@
1111
"description": "The ROS topic name for the input channel.",
1212
"default": "/perception/object_recognition/detection/objects"
1313
},
14-
"can_spawn_new_tracker": {
15-
"type": "boolean",
16-
"description": "Indicates if the input channel can spawn new trackers.",
17-
"default": true
14+
"flags": {
15+
"type": "object",
16+
"properties": {
17+
"can_spawn_new_tracker": {
18+
"type": "boolean",
19+
"description": "Indicates if the input channel can spawn new trackers.",
20+
"default": true
21+
},
22+
"can_trust_existence_probability": {
23+
"type": "boolean",
24+
"description": "Indicates if the input channel can trust the existence probability.",
25+
"default": true
26+
},
27+
"can_trust_extension": {
28+
"type": "boolean",
29+
"description": "Indicates if the input channel can trust the object size(extension).",
30+
"default": true
31+
},
32+
"can_trust_classification": {
33+
"type": "boolean",
34+
"description": "Indicates if the input channel can trust the object classification.",
35+
"default": true
36+
},
37+
"can_trust_orientation": {
38+
"type": "boolean",
39+
"description": "Indicates if the input channel can trust the object orientation.",
40+
"default": true
41+
}
42+
}
1843
},
1944
"optional": {
2045
"type": "object",
@@ -32,7 +57,7 @@
3257
}
3358
}
3459
},
35-
"required": ["topic", "can_spawn_new_tracker"]
60+
"required": ["topic", "flags"]
3661
}
3762
},
3863
"properties": {
@@ -49,7 +74,13 @@
4974
"$ref": "#/definitions/input_channel",
5075
"default": {
5176
"topic": "/perception/object_recognition/detection/objects",
52-
"can_spawn_new_tracker": true,
77+
"flags": {
78+
"can_spawn_new_tracker": true,
79+
"can_trust_existence_probability": true,
80+
"can_trust_extension": true,
81+
"can_trust_classification": true,
82+
"can_trust_orientation": true
83+
},
5384
"optional": {
5485
"name": "detected_objects",
5586
"short_name": "all"
@@ -60,7 +91,13 @@
6091
"$ref": "#/definitions/input_channel",
6192
"default": {
6293
"topic": "/perception/object_recognition/detection/clustering/objects",
63-
"can_spawn_new_tracker": true,
94+
"flags": {
95+
"can_spawn_new_tracker": true,
96+
"can_trust_existence_probability": false,
97+
"can_trust_extension": false,
98+
"can_trust_classification": false,
99+
"can_trust_orientation": false
100+
},
64101
"optional": {
65102
"name": "clustering",
66103
"short_name": "Lcl"
@@ -71,7 +108,13 @@
71108
"$ref": "#/definitions/input_channel",
72109
"default": {
73110
"topic": "/perception/object_recognition/detection/centerpoint/objects",
74-
"can_spawn_new_tracker": true,
111+
"flags": {
112+
"can_spawn_new_tracker": true,
113+
"can_trust_existence_probability": true,
114+
"can_trust_extension": true,
115+
"can_trust_classification": true,
116+
"can_trust_orientation": true
117+
},
75118
"optional": {
76119
"name": "centerpoint",
77120
"short_name": "Lcp"
@@ -82,7 +125,13 @@
82125
"$ref": "#/definitions/input_channel",
83126
"default": {
84127
"topic": "/perception/object_recognition/detection/centerpoint/validation/objects",
85-
"can_spawn_new_tracker": true,
128+
"flags": {
129+
"can_spawn_new_tracker": true,
130+
"can_trust_existence_probability": true,
131+
"can_trust_extension": true,
132+
"can_trust_classification": true,
133+
"can_trust_orientation": true
134+
},
86135
"optional": {
87136
"name": "centerpoint",
88137
"short_name": "Lcp"
@@ -93,7 +142,13 @@
93142
"$ref": "#/definitions/input_channel",
94143
"default": {
95144
"topic": "/perception/object_recognition/detection/apollo/objects",
96-
"can_spawn_new_tracker": true,
145+
"flags": {
146+
"can_spawn_new_tracker": true,
147+
"can_trust_existence_probability": true,
148+
"can_trust_extension": true,
149+
"can_trust_classification": true,
150+
"can_trust_orientation": true
151+
},
97152
"optional": {
98153
"name": "apollo",
99154
"short_name": "Lap"
@@ -104,7 +159,13 @@
104159
"$ref": "#/definitions/input_channel",
105160
"default": {
106161
"topic": "/perception/object_recognition/detection/apollo/validation/objects",
107-
"can_spawn_new_tracker": true,
162+
"flags": {
163+
"can_spawn_new_tracker": true,
164+
"can_trust_existence_probability": true,
165+
"can_trust_extension": true,
166+
"can_trust_classification": true,
167+
"can_trust_orientation": true
168+
},
108169
"optional": {
109170
"name": "apollo",
110171
"short_name": "Lap"
@@ -115,7 +176,13 @@
115176
"$ref": "#/definitions/input_channel",
116177
"default": {
117178
"topic": "/perception/object_recognition/detection/pointpainting/objects",
118-
"can_spawn_new_tracker": true,
179+
"flags": {
180+
"can_spawn_new_tracker": true,
181+
"can_trust_existence_probability": true,
182+
"can_trust_extension": true,
183+
"can_trust_classification": true,
184+
"can_trust_orientation": true
185+
},
119186
"optional": {
120187
"name": "pointpainting",
121188
"short_name": "Lpp"
@@ -126,7 +193,13 @@
126193
"$ref": "#/definitions/input_channel",
127194
"default": {
128195
"topic": "/perception/object_recognition/detection/pointpainting/validation/objects",
129-
"can_spawn_new_tracker": true,
196+
"flags": {
197+
"can_spawn_new_tracker": true,
198+
"can_trust_existence_probability": true,
199+
"can_trust_extension": true,
200+
"can_trust_classification": true,
201+
"can_trust_orientation": true
202+
},
130203
"optional": {
131204
"name": "pointpainting",
132205
"short_name": "Lpp"
@@ -137,7 +210,13 @@
137210
"$ref": "#/definitions/input_channel",
138211
"default": {
139212
"topic": "/perception/object_recognition/detection/clustering/camera_lidar_fusion/objects",
140-
"can_spawn_new_tracker": true,
213+
"flags": {
214+
"can_spawn_new_tracker": true,
215+
"can_trust_existence_probability": false,
216+
"can_trust_extension": false,
217+
"can_trust_classification": true,
218+
"can_trust_orientation": false
219+
},
141220
"optional": {
142221
"name": "camera_lidar_fusion",
143222
"short_name": "CLf"
@@ -148,7 +227,13 @@
148227
"$ref": "#/definitions/input_channel",
149228
"default": {
150229
"topic": "/perception/object_recognition/detection/detection_by_tracker/objects",
151-
"can_spawn_new_tracker": false,
230+
"flags": {
231+
"can_spawn_new_tracker": false,
232+
"can_trust_existence_probability": false,
233+
"can_trust_extension": false,
234+
"can_trust_classification": false,
235+
"can_trust_orientation": false
236+
},
152237
"optional": {
153238
"name": "detection_by_tracker",
154239
"short_name": "dbT"
@@ -159,7 +244,13 @@
159244
"$ref": "#/definitions/input_channel",
160245
"default": {
161246
"topic": "/sensing/radar/detected_objects",
162-
"can_spawn_new_tracker": true,
247+
"flags": {
248+
"can_spawn_new_tracker": true,
249+
"can_trust_existence_probability": true,
250+
"can_trust_extension": false,
251+
"can_trust_classification": true,
252+
"can_trust_orientation": false
253+
},
163254
"optional": {
164255
"name": "radar",
165256
"short_name": "R"
@@ -170,7 +261,13 @@
170261
"$ref": "#/definitions/input_channel",
171262
"default": {
172263
"topic": "/perception/object_recognition/detection/radar/far_objects",
173-
"can_spawn_new_tracker": true,
264+
"flags": {
265+
"can_spawn_new_tracker": true,
266+
"can_trust_existence_probability": true,
267+
"can_trust_extension": false,
268+
"can_trust_classification": true,
269+
"can_trust_orientation": false
270+
},
174271
"optional": {
175272
"name": "radar_far",
176273
"short_name": "Rf"

0 commit comments

Comments
 (0)