From df1ee4bb29a0ad692d3c8b3c53b82c2a50ad959a Mon Sep 17 00:00:00 2001 From: gaschler Date: Wed, 28 Feb 2018 14:46:26 +0100 Subject: [PATCH] Fix metric label. (#944) This makes metrics_test in debug mode happy. --- cartographer/mapping/2d/pose_graph/constraint_builder_2d.cc | 2 +- cartographer/mapping/3d/pose_graph/constraint_builder_3d.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cartographer/mapping/2d/pose_graph/constraint_builder_2d.cc b/cartographer/mapping/2d/pose_graph/constraint_builder_2d.cc index 3ce1631..91982b0 100644 --- a/cartographer/mapping/2d/pose_graph/constraint_builder_2d.cc +++ b/cartographer/mapping/2d/pose_graph/constraint_builder_2d.cc @@ -319,7 +319,7 @@ void ConstraintBuilder2D::RegisterMetrics(metrics::FamilyFactory* factory) { counts->Add({{"search_region", "global"}, {"matcher", "found"}}); auto* queue_length = factory->NewGaugeFamily( "/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* scores = factory->NewHistogramFamily( "/mapping/2d/pose_graph/constraint_builder/scores", diff --git a/cartographer/mapping/3d/pose_graph/constraint_builder_3d.cc b/cartographer/mapping/3d/pose_graph/constraint_builder_3d.cc index 3fda925..c1bb459 100644 --- a/cartographer/mapping/3d/pose_graph/constraint_builder_3d.cc +++ b/cartographer/mapping/3d/pose_graph/constraint_builder_3d.cc @@ -352,7 +352,7 @@ void ConstraintBuilder3D::RegisterMetrics(metrics::FamilyFactory* factory) { counts->Add({{"search_region", "global"}, {"matcher", "found"}}); auto* queue_length = factory->NewGaugeFamily( "/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* scores = factory->NewHistogramFamily( "/mapping/3d/pose_graph/constraint_builder/scores",