Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
height_validator.hpp
Go to the documentation of this file.
1#pragma once
2
4
12public:
22 explicit HeightValidator(double min_height, double large_max_height, double small_max_height,
23 double height_cap);
24
38 std::vector<double> coneValidator(Cluster* cone_point_cloud, Plane& plane) const override;
39
43 virtual ~HeightValidator() = default;
44
45private:
46 double _min_height_;
49 double _height_cap_;
50};
Represents a cluster of 3D points using PCL (Point Cloud Library).
Definition cluster.hpp:14
Abstract class responsible for validating clusters as cones.
The HeightValidator class is responsible for validating cones based on their height.
double _small_max_height_
Max Height treshhold for small cones *‍/.
double _height_cap_
Minimum ratio result needed for return values to not be 0. *‍/.
double _min_height_
Min Height threshold for cone validation *‍/.
std::vector< double > coneValidator(Cluster *cone_point_cloud, Plane &plane) const override
Validates a cone based on its height relative to a plane.
virtual ~HeightValidator()=default
Virtual destructor for HeightValidator.
double _large_max_height_
Max Height threshold for large cones *‍/.
The Plane class represents a 3D plane defined by its equation ax + by + cz + d = 0.
Definition plane.hpp:12