Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
GridWallRemoval Class Reference

Wall removal implementation using a grid-based approach. More...

#include <grid_removal.hpp>

Inheritance diagram for GridWallRemoval:
Inheritance graph
Collaboration diagram for GridWallRemoval:
Collaboration graph

Public Member Functions

 GridWallRemoval (double angle, double radius, double start_augmentation, double radius_augmentation, double fov, int max_points_per_cluster)
 Constructor for GridWallRemoval.
 
void remove_walls (const sensor_msgs::msg::PointCloud2::SharedPtr &point_cloud, sensor_msgs::msg::PointCloud2::SharedPtr &output_cloud) override
 Removes walls from the input point cloud using a grid-based approach.
 

Private Attributes

std::vector< int > occlusion_bins_
 
GridGeometry grid_geometry_
 
int max_points_per_cluster_
 

Detailed Description

Wall removal implementation using a grid-based approach.

Definition at line 21 of file grid_removal.hpp.

Constructor & Destructor Documentation

◆ GridWallRemoval()

GridWallRemoval::GridWallRemoval ( double  angle,
double  radius,
double  start_augmentation,
double  radius_augmentation,
double  fov,
int  max_points_per_cluster 
)

Constructor for GridWallRemoval.

Parameters
angleAngular resolution
radiusBase radial bin size
start_augmentationDistance at which augmentation starts
radius_augmentationBin size increase per bin
fovField of view
max_points_per_clusterMaximum number of points allowed per each grid to be considered

Definition at line 3 of file grid_removal.cpp.

Member Function Documentation

◆ remove_walls()

void GridWallRemoval::remove_walls ( const sensor_msgs::msg::PointCloud2::SharedPtr &  point_cloud,
sensor_msgs::msg::PointCloud2::SharedPtr &  output_cloud 
)
overridevirtual

Removes walls from the input point cloud using a grid-based approach.

Parameters
point_cloudThe input point cloud
output_cloudThe output point cloud with walls and big objects removed

Implements WallRemoval.

Definition at line 10 of file grid_removal.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ grid_geometry_

GridGeometry GridWallRemoval::grid_geometry_
private

Definition at line 47 of file grid_removal.hpp.

◆ max_points_per_cluster_

int GridWallRemoval::max_points_per_cluster_
private

Definition at line 48 of file grid_removal.hpp.

◆ occlusion_bins_

std::vector<int> GridWallRemoval::occlusion_bins_
private

Definition at line 46 of file grid_removal.hpp.


The documentation for this class was generated from the following files: