|
Formula Student Autonomous Systems
The code for the main driverless system
|
Concrete Class representing a centroid-based method for estimating the center position of a cone. More...
#include <centroid_calculation.hpp>


Public Member Functions | |
| Eigen::Vector4f | calculate_center (const sensor_msgs::msg::PointCloud2::SharedPtr &point_cloud, const std::vector< int > &point_indices, const Plane &plane=Plane()) const override |
| Estimates the center position of a cone using centroid calculation. | |
Concrete Class representing a centroid-based method for estimating the center position of a cone.
This class implements the CenterCalculator interface to provide a method for estimating the center position of a cone based on its point cloud data, using centroid calculation.
Definition at line 11 of file centroid_calculation.hpp.
|
overridevirtual |
Estimates the center position of a cone using centroid calculation.
This method estimates the center position of a cone by calculating the centroid of its point cloud data.
| point_cloud | Pointer to the point cloud representing the cone's cluster. |
| plane | Plane representing the ground [Not used in this concrete implementation] |
Implements CenterCalculator.
Definition at line 3 of file centroid_calculation.cpp.
