Skip to content

Commit 63190e2

Browse files
Remove filter for the old height map version that isn't needed anymore (#887)
* Delete FilterederticalSurfacesExtractor java file * Deleted the cude file for the VerticalSurfacesFilter * Remove the FilterVerticalSurfaces kernel because the new height map updates dont' need it * Remove test for deleted class
1 parent db9eb35 commit 63190e2

File tree

4 files changed

+0
-207
lines changed

4 files changed

+0
-207
lines changed

ihmc-perception/src/main/java/us/ihmc/perception/gpuHeightMap/FilteredVerticalSurfacesExtractor.java

Lines changed: 0 additions & 74 deletions
This file was deleted.

ihmc-perception/src/main/java/us/ihmc/perception/gpuHeightMap/RapidHeightMapExtractor.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ public class RapidHeightMapExtractor
8585
private int previousCellY;
8686
private float resetOffset;
8787

88-
private final FilteredVerticalSurfacesExtractor filteredVerticalSurfacesExtractor;
89-
9088
public RapidHeightMapExtractor(HeightMapParameters heightMapParameters)
9189
{
9290
this.heightMapParameters = heightMapParameters;
@@ -151,8 +149,6 @@ public RapidHeightMapExtractor(HeightMapParameters heightMapParameters)
151149
{
152150
throw new RuntimeException(e);
153151
}
154-
155-
filteredVerticalSurfacesExtractor = new FilteredVerticalSurfacesExtractor(stream, cellsPerAxisGlobal, cellsPerAxisGlobal);
156152
}
157153

158154
private void computeDerivedParameters()
@@ -339,12 +335,6 @@ public void update(GpuMat latestDepthImageGPU,
339335
checkCUDAError();
340336
}
341337

342-
// Apply the vertical surfaces filter
343-
if (heightMapParameters.getEnableVerticalFilter())
344-
{
345-
filteredVerticalSurfacesExtractor.update(scaledHeightMap);
346-
}
347-
348338
// ---------- Run the Terrain cropping kernel ----------
349339
{
350340
int terrainKernelGridSizeXY = (cellsPerAxisTerrain + BLOCK_SIZE_XY - 1) / BLOCK_SIZE_XY;
@@ -512,8 +502,6 @@ public void destroy()
512502
scaledHeightMap.close();
513503
emptyGlobalHeightMap.close();
514504

515-
filteredVerticalSurfacesExtractor.destroy();
516-
517505
// At the end we have to destroy the stream to release the memory
518506
CUDAStreamManager.releaseStream(stream);
519507
}

ihmc-perception/src/main/resources/us/ihmc/perception/gpuHeightMap/VerticalSurfacesFilter.cu

Lines changed: 0 additions & 56 deletions
This file was deleted.

ihmc-perception/src/test/java/us/ihmc/perception/gpuHeightMap/FilteredVerticalSurfacesExtractorTest.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)