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