|
Formula Student Autonomous Systems
The code for the main driverless system
|
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) clustering algorithm implementation. More...
#include <dbscan.hpp>


Public Member Functions | |
| DBSCAN (int min_cluster_size, double neighbours_dist_threshold) | |
| Constructor for the DBSCAN clustering algorithm. | |
| 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 DBSCAN algorithm. | |
Private Attributes | |
| int | min_cluster_size |
| Minimum number of points required to form a cluster. | |
| double | neighbours_dist_threshold |
| Maximum distance between points to be considered as neighbors. | |
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) clustering algorithm implementation.
The DBSCAN class is a concrete implementation of the Clustering interface, using the DBSCAN algorithm to cluster point clouds based on density and distance thresholds.
Definition at line 14 of file dbscan.hpp.
| DBSCAN::DBSCAN | ( | int | min_cluster_size, |
| double | neighbours_dist_threshold | ||
| ) |
Constructor for the DBSCAN clustering algorithm.
| min_cluster_size | Minimum number of points required to form a cluster. |
| neighbours_dist_threshold | Maximum distance between points to be considered as neighbors. |
Definition at line 3 of file dbscan.cpp.
|
overridevirtual |
Clusters the input point cloud into groups using the DBSCAN algorithm.
This function implements the clustering method from the Clustering interface.
| point_cloud | A shared pointer to a point cloud of type pcl::PointCloud<pcl::PointXYZI>. |
| clusters | A pointer to a vector of shared pointers to point clouds to store the resulting clusters. |
Implements Clustering.
Definition at line 6 of file dbscan.cpp.
|
private |
Minimum number of points required to form a cluster.
Definition at line 37 of file dbscan.hpp.
|
private |
Maximum distance between points to be considered as neighbors.
Definition at line 38 of file dbscan.hpp.