Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use autoware_internal_debug_msgs in processing_time_plotter.py #184

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/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
from .system_performance_plotter_base import create_common_argment

Check warning on line 10 in common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/processing_time_plotter.py

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (argment)


class ProcessingTimePlotter(SystemPerformancePlotterBase):
Expand All @@ -30,7 +32,12 @@
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 All @@ -43,7 +50,7 @@


def main():
args = create_common_argment(100)

Check warning on line 53 in common/autoware_debug_tools/autoware_debug_tools/system_performance_plotter/processing_time_plotter.py

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (argment)
plotter = ProcessingTimePlotter(args, "Processing Time [ms]", "_processing_time")
plotter.run()

Expand Down
Loading