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

Closed
wants to merge 3 commits into from

Conversation

xtk8532704
Copy link

Description

Add a bool parameter output_metrics, if it's true, the control_evaluator node writes the statics of the metrics 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

Parent Issue:

  • Link

How was this PR tested?

Psim with output_metrics=true:

$ cat /home/temkeikem/.ros/log/autoware_metrics/autoware_control_evaluator-2024-11-27-00-28-32.json 
{
    "goal_lateral_deviation/count": 0,
    "goal_lateral_deviation/description": "Lateral deviation from the goal point[m]",
    "goal_lateral_deviation/max": -1.7976931348623157e+308,
    "goal_lateral_deviation/mean": 0.0,
    "goal_lateral_deviation/min": 1.7976931348623157e+308,
    # ignore many outputs.
    "yaw_deviation/count": 227,
    "yaw_deviation/description": "Yaw deviation from the reference trajectory[rad]",
    "yaw_deviation/max": 0.06566750430257973,
    "yaw_deviation/mean": 0.031098377450999377,
    "yaw_deviation/min": 4.124327548060691e-05
}

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

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 reopened this Nov 26, 2024
@xtk8532704 xtk8532704 marked this pull request as draft November 26, 2024 15:41
@xtk8532704 xtk8532704 closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant