Closed facontidavide closed 3 years ago
I was looking at this code:
bool lama::FrequencyOccupancyMap::setOccupied(const Vector2ui& coordinates) { // ... bool occupied = prob(*cell) > occ_thresh; cell->occupied++; cell->visited++; // ... }
Shouldn't it be instead:
bool occupied = prob(*cell) > occ_thresh; if( occupied ) cell->occupied++; cell->visited++; }
oh, I think I figured it out, never mind
I was writting my reply to you, but it seems that it solved by it self :)
I was looking at this code:
Shouldn't it be instead: