Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
grid_clustering.hpp
Go to the documentation of this file.
1#include <queue>
2#include <string>
3#include <unordered_map>
4#include <vector>
5
9
18class GridClustering : public Clustering {
19public:
27 GridClustering(double grid_angle, double grid_radius, double start_augmentation,
28 double radius_augmentation, double fov);
29
39 void clustering(const sensor_msgs::msg::PointCloud2::SharedPtr& point_cloud,
40 std::vector<Cluster>* clusters) const override;
41
42private:
44};
Abstract base class for clustering point clouds.
Grid-based clustering algorithm implementation.
void clustering(const sensor_msgs::msg::PointCloud2::SharedPtr &point_cloud, std::vector< Cluster > *clusters) const override
Clusters the input point cloud into groups using the GridClustering algorithm.
GridGeometry grid_geometry_
Geometry of the grid used for clustering.
Structure to hold grid geometry parameters and provide utility functions.