Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
z_score_validator.cpp
Go to the documentation of this file.
2
3ZScoreValidator::ZScoreValidator(double min_z_score_x, double max_z_score_x, double min_z_score_y,
4 double max_z_score_y)
5 : _min_z_score_x_(min_z_score_x),
6 _max_z_score_x_(max_z_score_x),
7 _min_z_score_y_(min_z_score_y),
8 _max_z_score_y_(max_z_score_y){};
9
10std::vector<double> ZScoreValidator::coneValidator([[maybe_unused]] Cluster* cluster,
11 [[maybe_unused]] Plane& plane) const {
12 /*
13 (_min_z_score_x_ <= cluster->get_z_score_x() &&
14 cluster->get_z_score_x() <= _max_z_score_x_) &&
15 (_min_z_score_y_ <= cluster->get_z_score_y() &&
16 cluster->get_z_score_y() <= _max_z_score_y_);
17 */
18 return {};
19}
Represents a cluster of 3D points using PCL (Point Cloud Library).
Definition cluster.hpp:14
The Plane class represents a 3D plane defined by its equation ax + by + cz + d = 0.
Definition plane.hpp:12
std::vector< double > coneValidator(Cluster *cluster, Plane &plane) const override
Validates the cluster based on the z-score distribution.
ZScoreValidator(double min_z_score_x, double max_z_score_x, double min_z_score_y, double max_z_score_y)
Construct a new ZScoreValidator object with the specific thresholds.