From 30f7de1a325d6604c780f2f74d9a345ec369d12d Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Wed, 26 Jul 2017 11:14:22 +0200 Subject: [PATCH] fix num submaps in trimmer_test (#424) --- cartographer/mapping/pose_graph_trimmer_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cartographer/mapping/pose_graph_trimmer_test.cc b/cartographer/mapping/pose_graph_trimmer_test.cc index 0bbf787..a3044a2 100644 --- a/cartographer/mapping/pose_graph_trimmer_test.cc +++ b/cartographer/mapping/pose_graph_trimmer_test.cc @@ -29,7 +29,7 @@ class FakePoseGraph : public Trimmable { public: ~FakePoseGraph() override {} - int num_submaps(int trajectory_id) const override { return 17; } + int num_submaps(int trajectory_id) const override { return 17 - trimmed_submaps_.size(); } void MarkSubmapAsTrimmed(const SubmapId& submap_id) override { trimmed_submaps_.push_back(submap_id);