Fix for preprocessing condition in SemanticLidar

This commit is contained in:
Daniel Santos-Olivan 2020-11-05 12:43:08 +01:00 committed by Marc Garcia Puig
parent d3935f6824
commit ea194c462e
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void ARayCastSemanticLidar::PreprocessRays(uint32_t Channels, uint32_t MaxPoints
for (auto& conds : RayPreprocessCondition) { for (auto& conds : RayPreprocessCondition) {
conds.clear(); conds.clear();
conds.reserve(MaxPointsPerChannel); conds.resize(MaxPointsPerChannel);
std::fill(conds.begin(), conds.end(), true); std::fill(conds.begin(), conds.end(), true);
} }
} }