diff --git a/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/processing_time_plotter.py b/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/processing_time_plotter.py index c865deff..68a4d151 100644 --- a/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/processing_time_plotter.py +++ b/common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/processing_time_plotter.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +from tier4_debug_msgs.msg import Float32Stamped from tier4_debug_msgs.msg import Float64Stamped from .system_performance_plotter_base import PREDEFINED_COMPONENT_NAMES @@ -11,7 +12,7 @@ class ProcessingTimePlotter(SystemPerformancePlotterBase): def check_topic(self, topic_name): if self.grep_topic_name is not None and self.grep_topic_name not in topic_name: return False - if "/processing_time_ms" not in topic_name: + if "/processing_time_ms" not in topic_name and "/exe_time_ms" not in topic_name: return False if self.component_name == "all": @@ -29,7 +30,7 @@ def check_topic(self, topic_name): return True def update_metrics_func(self, topic_name, data, date_time): - if not isinstance(data, Float64Stamped): + if not isinstance(data, Float64Stamped) and not isinstance(data, Float32Stamped): return if topic_name not in self.stamp_and_metrics: