|
Formula Student Autonomous Systems
The code for the main driverless system
|
The SizeValidator class is responsible for validating cones based on the minimum distance between the the highest and lowest point cloud points in all axis. More...
#include <displacement_validator.hpp>


Public Member Functions | |
| DisplacementValidator (double min_distance_x, double min_distance_y, double min_distance_z) | |
| Constructs a new DisplacementValidator object with the specified distance threshold for all axis. | |
| std::vector< double > | coneValidator (Cluster *cone_point_cloud, Plane &plane) const override |
| Validates a cone based on the maximum distance between its points in all axis. | |
| virtual | ~DisplacementValidator ()=default |
| Virtual destructor for DisplacementValidator. | |
Private Attributes | |
| double | _min_distance_x_ |
| double | _min_distance_y_ |
| double | _min_distance_z_ |
The SizeValidator class is responsible for validating cones based on the minimum distance between the the highest and lowest point cloud points in all axis.
This class inherits from the ConeValidator class and overrides the coneValidator method to provide size-based validation logic.
Definition at line 12 of file displacement_validator.hpp.
|
explicit |
Constructs a new DisplacementValidator object with the specified distance threshold for all axis.
| min_distance_x | Minimum distance between the highest an lowest point on the x axis. |
| min_distance_y | Minimum distance between the highest an lowest point on the y axis. |
| min_distance_z | Minimum distance between the highest an lowest point on the z axis. |
Definition at line 3 of file displacement_validator.cpp.
|
virtualdefault |
Virtual destructor for DisplacementValidator.
|
overridevirtual |
Validates a cone based on the maximum distance between its points in all axis.
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 distance criteria in all axis.
| cone_point_cloud | Pointer to a Cluster object representing the point cloud of the cone. |
Implements ConeValidator.
Definition at line 9 of file displacement_validator.cpp.


|
private |
Definition at line 46 of file displacement_validator.hpp.
|
private |
Definition at line 47 of file displacement_validator.hpp.
|
private |
Definition at line 48 of file displacement_validator.hpp.