Fix trajectory count check bug for asset writer floor separation. (#542)

master
jie 2017-09-28 01:43:47 -07:00 committed by Damon Kohler
parent 7d0e72dac2
commit 3744988fd2
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ std::unique_ptr<XRayPointsProcessor> XRayPointsProcessor::FromDictionary(
? DrawTrajectories::kYes ? DrawTrajectories::kYes
: DrawTrajectories::kNo; : DrawTrajectories::kNo;
if (separate_floor) { if (separate_floor) {
CHECK_EQ(trajectories.size(), 0) CHECK_EQ(trajectories.size(), 1)
<< "Can only detect floors with a single trajectory."; << "Can only detect floors with a single trajectory.";
floors = mapping::DetectFloors(trajectories.at(0)); floors = mapping::DetectFloors(trajectories.at(0));
} }