|
Formula Student Autonomous Systems
The code for the main driverless system
|
The NPointsValidator class is responsible for validating cones based on the number of points they contain. More...
#include <npoints_validator.hpp>


Public Member Functions | |
| NPointsValidator (long unsigned int min_n_points) | |
| Constructs a new HeightValidator object with the specified height threshold. | |
| std::vector< double > | coneValidator (Cluster *cone_point_cloud, Plane &plane) const override |
| Validates a cone based on its number of points. | |
| virtual | ~NPointsValidator ()=default |
| Virtual destructor for NpointsValidator. | |
Private Attributes | |
| long unsigned int | _min_n_points_ |
The NPointsValidator class is responsible for validating cones based on the number of points they contain.
This class inherits from the ConeValidator class and overrides the coneValidator method to provide point quantity validation logic.
Definition at line 12 of file npoints_validator.hpp.
|
explicit |
Constructs a new HeightValidator object with the specified height threshold.
| min_n_points | Min number of points for cone validation. |
Definition at line 3 of file npoints_validator.cpp.
|
virtualdefault |
Virtual destructor for NpointsValidator.
|
overridevirtual |
Validates a cone based on its number of points.
This method overrides the coneValidator method of the base class ConeValidator. It validates whether the given cone, represented by a point cloud cluster, meets the minimum number of points criteria.
| cone_point_cloud | Pointer to a Cluster object representing the point cloud of the cone. |
Implements ConeValidator.
Definition at line 5 of file npoints_validator.cpp.


|
private |
Definition at line 39 of file npoints_validator.hpp.