Fix trajectory count check bug for asset writer floor separation. (#542)
parent
7d0e72dac2
commit
3744988fd2
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue