Skip to content

Commit 59802a3

Browse files
Forward port SteveMacenski#262 to ROS 2
1 parent 359c006 commit 59802a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/spatio_temporal_voxel_grid.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ void SpatioTemporalVoxelGrid::ClearFrustums(
102102

103103
// accelerate the decay of voxels interior to the frustum
104104
if (this->IsGridEmpty()) {
105+
_grid_points->clear();
106+
_cost_map->clear();
105107
return;
106108
}
107109

0 commit comments

Comments
 (0)