|
Formula Student Autonomous Systems
The code for the main driverless system
|
Validates clusters using a cylinder approximation. More...
#include <cylinder_validator.hpp>


Public Member Functions | |
| CylinderValidator (double small_width, double small_height, double large_width, double large_height, double out_distance_cap) | |
| Constructs a new CylinderValidator object with specified width and height. | |
| double | small_getRadius () const |
| Gets the radius of the cylinder for small cones. | |
| double | large_getRadius () const |
| Gets the radius of the cylinder for large cones. | |
| std::vector< double > | coneValidator (Cluster *cone_point_cloud, Plane &plane) const override |
| Validates a cluster using cylinder approximation. | |
Private Attributes | |
| double | small_width |
| Width of the cylinder for a small cone. | |
| double | small_height |
| Height of the cylinder for a small cone. | |
| double | large_width |
| Width of the cylinder for a large cone. | |
| double | large_height |
| Height of the cylinder for a large cone. | |
| double | out_distance_cap |
| Minimum out_distance value for it to be 0. | |
Validates clusters using a cylinder approximation.
The CylinderValidator class inherits from the ConeValidator class and implements cluster validation using a cylinder approximation. It provides methods to set and retrieve cylinder dimensions and to perform validation of clusters.
Definition at line 13 of file cylinder_validator.hpp.
| CylinderValidator::CylinderValidator | ( | double | small_width, |
| double | small_height, | ||
| double | large_width, | ||
| double | large_height, | ||
| double | out_distance_cap | ||
| ) |
Constructs a new CylinderValidator object with specified width and height.
| small_width | The width of the cylinder for a small cone. |
| small_height | The height of the cylinder for a small cone. |
| large_width | The width of the cylinder for a large cone. |
| large_height | The height of the cylinder for a large cone. |
| out_distance_cap | Minimum out_distance value for a cluster to have a 0 result. |
Definition at line 3 of file cylinder_validator.cpp.
|
overridevirtual |
Validates a cluster using cylinder approximation.
| cone_point_cloud | Pointer to the cluster to be validated. |
Implements ConeValidator.
Definition at line 15 of file cylinder_validator.cpp.


| double CylinderValidator::large_getRadius | ( | ) | const |
Gets the radius of the cylinder for large cones.
Definition at line 13 of file cylinder_validator.cpp.

| double CylinderValidator::small_getRadius | ( | ) | const |
Gets the radius of the cylinder for small cones.
Definition at line 11 of file cylinder_validator.cpp.

|
private |
Height of the cylinder for a large cone.
Definition at line 52 of file cylinder_validator.hpp.
|
private |
Width of the cylinder for a large cone.
Definition at line 51 of file cylinder_validator.hpp.
|
private |
Minimum out_distance value for it to be 0.
Definition at line 53 of file cylinder_validator.hpp.
|
private |
Height of the cylinder for a small cone.
Definition at line 50 of file cylinder_validator.hpp.
|
private |
Width of the cylinder for a small cone.
Definition at line 49 of file cylinder_validator.hpp.