From 3744988fd2f18cf03f10b828e4be70b0ac01a9f5 Mon Sep 17 00:00:00 2001 From: jie Date: Thu, 28 Sep 2017 01:43:47 -0700 Subject: [PATCH] Fix trajectory count check bug for asset writer floor separation. (#542) --- cartographer/io/xray_points_processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cartographer/io/xray_points_processor.cc b/cartographer/io/xray_points_processor.cc index 95e117f..7779271 100644 --- a/cartographer/io/xray_points_processor.cc +++ b/cartographer/io/xray_points_processor.cc @@ -127,7 +127,7 @@ std::unique_ptr XRayPointsProcessor::FromDictionary( ? DrawTrajectories::kYes : DrawTrajectories::kNo; if (separate_floor) { - CHECK_EQ(trajectories.size(), 0) + CHECK_EQ(trajectories.size(), 1) << "Can only detect floors with a single trajectory."; floors = mapping::DetectFloors(trajectories.at(0)); }