Fix metric label. (#944)

This makes metrics_test in debug mode happy.
master
gaschler 2018-02-28 14:46:26 +01:00 committed by Wally B. Feed
parent c8c81dff35
commit df1ee4bb29
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ void ConstraintBuilder2D::RegisterMetrics(metrics::FamilyFactory* factory) {
counts->Add({{"search_region", "global"}, {"matcher", "found"}}); counts->Add({{"search_region", "global"}, {"matcher", "found"}});
auto* queue_length = factory->NewGaugeFamily( auto* queue_length = factory->NewGaugeFamily(
"/mapping/2d/pose_graph/constraint_builder/queue_length", "Queue length"); "/mapping/2d/pose_graph/constraint_builder/queue_length", "Queue length");
kQueueLengthMetric = queue_length->Add({{}}); kQueueLengthMetric = queue_length->Add({});
auto boundaries = metrics::Histogram::FixedWidth(0.05, 20); auto boundaries = metrics::Histogram::FixedWidth(0.05, 20);
auto* scores = factory->NewHistogramFamily( auto* scores = factory->NewHistogramFamily(
"/mapping/2d/pose_graph/constraint_builder/scores", "/mapping/2d/pose_graph/constraint_builder/scores",

View File

@ -352,7 +352,7 @@ void ConstraintBuilder3D::RegisterMetrics(metrics::FamilyFactory* factory) {
counts->Add({{"search_region", "global"}, {"matcher", "found"}}); counts->Add({{"search_region", "global"}, {"matcher", "found"}});
auto* queue_length = factory->NewGaugeFamily( auto* queue_length = factory->NewGaugeFamily(
"/mapping/3d/pose_graph/constraint_builder/queue_length", "Queue length"); "/mapping/3d/pose_graph/constraint_builder/queue_length", "Queue length");
kQueueLengthMetric = queue_length->Add({{}}); kQueueLengthMetric = queue_length->Add({});
auto boundaries = metrics::Histogram::FixedWidth(0.05, 20); auto boundaries = metrics::Histogram::FixedWidth(0.05, 20);
auto* scores = factory->NewHistogramFamily( auto* scores = factory->NewHistogramFamily(
"/mapping/3d/pose_graph/constraint_builder/scores", "/mapping/3d/pose_graph/constraint_builder/scores",