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);