Skip to content

Commit

Permalink
refactor: rename metric name
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Nov 29, 2024
1 parent 8f2b3c5 commit 91371a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ void PerceptionOnlineEvaluatorNode::toMetricMsg(
{
// min value
metrics_msg.metric_array.emplace_back(tier4_metric_msgs::build<tier4_metric_msgs::msg::Metric>()
.name(metric + "min")
.name(metric + "/min")
.unit("m")
.value(std::to_string(metric_stat.min())));

// max value
metrics_msg.metric_array.emplace_back(tier4_metric_msgs::build<tier4_metric_msgs::msg::Metric>()
.name(metric + "max")
.name(metric + "/max")
.unit("m")
.value(std::to_string(metric_stat.max())));

// mean value
metrics_msg.metric_array.emplace_back(tier4_metric_msgs::build<tier4_metric_msgs::msg::Metric>()
.name(metric + "mean")
.name(metric + "/mean")
.unit("m")
.value(std::to_string(metric_stat.mean())));
}
Expand Down

0 comments on commit 91371a2

Please sign in to comment.