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(autoware_processing_time_checker): add a trigger to choice whether to output metrics to log folder #9479

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

xtk8532704
Copy link
Contributor

@xtk8532704 xtk8532704 commented Nov 26, 2024

Description

Add a bool parameter output_metrics, if it's true, the autoware_processing_time_checker node writes the statics of the processing_time measured during its lifetime to <ros2_logging_directory>/autoware_metrics/<node_name>-<time_stamp>.json when shut down.

This feature will be used to collect and analyze test results in real vehicle tests and evaluator tests.

Related links

Launch side PR: autowarefoundation/autoware_launch#1255

How was this PR tested?

Psim with output_metrics=true:

$ cat /home/temkeikem/.ros/log/autoware_metrics/autoware_processing_time_checker-2024-11-27-01-42-15.json 
{
    "avoidance_by_lane_change/count": 235,
    "avoidance_by_lane_change/description": "processing time of avoidance_by_lane_change[ms]",
    "avoidance_by_lane_change/max": 2.492,
    "avoidance_by_lane_change/mean": 0.1548723404255319,
    "avoidance_by_lane_change/min": 0.0,
    # ignore many outputs.
    "walkway/count": 225,
    "walkway/description": "processing time of walkway[ms]",
    "walkway/max": 0.085,
    "walkway/mean": 0.033093333333333336,
    "walkway/min": 0.018
}

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:system System design and integration. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) component:evaluator Evaluation tools for planning, localization etc. (auto-assigned) labels Nov 26, 2024
Copy link

github-actions bot commented Nov 26, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@xtk8532704 xtk8532704 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 26, 2024
xtk8532704 and others added 7 commits November 27, 2024 01:51
Signed-off-by: xtk8532704 <[email protected]>
Signed-off-by: xtk8532704 <[email protected]>
…/math/accumulator.hpp

Co-authored-by: Kosuke Takeuchi <[email protected]>
Signed-off-by: xtk8532704 <[email protected]>
Signed-off-by: xtk8532704 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) component:evaluator Evaluation tools for planning, localization etc. (auto-assigned) component:system System design and integration. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant