Skip to content

Commit

Permalink
feat: use autoware_internal_debug_msgs in processing_time_plotter.py
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Dec 27, 2024
1 parent 2b00989 commit c0e1943
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env python3

from tier4_debug_msgs.msg import Float32Stamped
from tier4_debug_msgs.msg import Float64Stamped
from autoware_internal_debug_msgs.msg import Float32Stamped
from autoware_internal_debug_msgs.msg import Float64Stamped
from tier4_debug_msgs.msg import Float32Stamped as Tier4Float32Stamped
from tier4_debug_msgs.msg import Float64Stamped as Tier4Float64Stamped

from .system_performance_plotter_base import PREDEFINED_COMPONENT_NAMES
from .system_performance_plotter_base import SystemPerformancePlotterBase
Expand Down Expand Up @@ -30,7 +32,12 @@ def check_topic(self, topic_name):
return True

def update_metrics_func(self, topic_name, data, date_time):
if not isinstance(data, Float64Stamped) and not isinstance(data, Float32Stamped):
if (
not isinstance(data, Tier4Float64Stamped)
and not isinstance(data, Tier4Float32Stamped)
and not isinstance(data, Float64Stamped)
and not isinstance(data, Float32Stamped)
):
return

if topic_name not in self.stamp_and_metrics:
Expand Down

0 comments on commit c0e1943

Please sign in to comment.