@@ -85,6 +85,7 @@ def main() -> int:
8585 # Local constants
8686 # pylint: disable=invalid-name
8787 QUEUE_MAX_SIZE = config ["queue_max_size" ]
88+ LOG_TIMINGS = config ["log_timings" ]
8889
8990 VIDEO_INPUT_WORKER_PERIOD = config ["video_input" ]["worker_period" ]
9091 VIDEO_INPUT_OPTION = camera_factory .CameraOption (config ["video_input" ]["camera_enum" ])
@@ -248,6 +249,7 @@ def main() -> int:
248249 VIDEO_INPUT_CAMERA_CONFIG ,
249250 VIDEO_INPUT_IMAGE_NAME ,
250251 VIDEO_INPUT_WORKER_PERIOD ,
252+ LOG_TIMINGS ,
251253 ),
252254 input_queues = [],
253255 output_queues = [video_input_to_detect_target_queue ],
@@ -269,6 +271,7 @@ def main() -> int:
269271 DETECT_TARGET_SHOW_ANNOTATED ,
270272 DETECT_TARGET_OPTION ,
271273 DETECT_TARGET_CONFIG ,
274+ LOG_TIMINGS ,
272275 ),
273276 input_queues = [video_input_to_detect_target_queue ],
274277 output_queues = [detect_target_to_data_merge_queue ],
@@ -290,6 +293,7 @@ def main() -> int:
290293 FLIGHT_INTERFACE_TIMEOUT ,
291294 FLIGHT_INTERFACE_BAUD_RATE ,
292295 FLIGHT_INTERFACE_WORKER_PERIOD ,
296+ LOG_TIMINGS ,
293297 ),
294298 input_queues = [
295299 flight_interface_decision_queue ,
@@ -312,7 +316,7 @@ def main() -> int:
312316 result , data_merge_worker_properties = worker_manager .WorkerProperties .create (
313317 count = 1 ,
314318 target = data_merge_worker .data_merge_worker ,
315- work_arguments = (DATA_MERGE_TIMEOUT ,),
319+ work_arguments = (DATA_MERGE_TIMEOUT , LOG_TIMINGS ),
316320 input_queues = [
317321 detect_target_to_data_merge_queue ,
318322 flight_interface_to_data_merge_queue ,
@@ -334,6 +338,7 @@ def main() -> int:
334338 work_arguments = (
335339 camera_intrinsics ,
336340 camera_extrinsics ,
341+ LOG_TIMINGS ,
337342 ),
338343 input_queues = [data_merge_to_geolocation_queue ],
339344 output_queues = [geolocation_to_cluster_estimation_queue ],
@@ -355,6 +360,7 @@ def main() -> int:
355360 MIN_NEW_POINTS_TO_RUN ,
356361 MAX_NUM_COMPONENTS ,
357362 RANDOM_STATE ,
363+ LOG_TIMINGS ,
358364 MIN_POINTS_PER_CLUSTER ,
359365 ),
360366 input_queues = [geolocation_to_cluster_estimation_queue ],
@@ -372,7 +378,7 @@ def main() -> int:
372378 result , communications_worker_properties = worker_manager .WorkerProperties .create (
373379 count = 1 ,
374380 target = communications_worker .communications_worker ,
375- work_arguments = (COMMUNICATIONS_TIMEOUT , COMMUNICATIONS_WORKER_PERIOD ),
381+ work_arguments = (COMMUNICATIONS_TIMEOUT , COMMUNICATIONS_WORKER_PERIOD , LOG_TIMINGS ),
376382 input_queues = [
377383 flight_interface_to_communications_queue ,
378384 cluster_estimation_to_communications_queue ,
0 commit comments