Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
CircunferenceCenterCalculator Class Reference

Concrete class representing a circumference-based method for estimating the center position of a cone. More...

#include <circunference_center_calculation.hpp>

Inheritance diagram for CircunferenceCenterCalculator:
Inheritance graph
Collaboration diagram for CircunferenceCenterCalculator:
Collaboration graph

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 a circumference-based approach.
 

Detailed Description

Concrete class representing a circumference-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 a circumference-based approach.

Definition at line 15 of file circunference_center_calculation.hpp.

Member Function Documentation

◆ calculate_center()

Eigen::Vector4f CircunferenceCenterCalculator::calculate_center ( const sensor_msgs::msg::PointCloud2::SharedPtr &  point_cloud,
const std::vector< int > &  point_indices,
const Plane plane = Plane() 
) const
overridevirtual

Estimates the center position of a cone using a circumference-based approach.

This method estimates the center position of a cone by approximating its center as the center of a circumference that cuts the cone.

Parameters
point_cloudPointer to the point cloud representing the cone's cluster.
planePlane representing the ground. (Mandatory)
Returns
Eigen::Vector4f representing the estimated center of the cone.
Note
The plane parameter is mandatory for this method.

Implements CenterCalculator.

Definition at line 3 of file circunference_center_calculation.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: