Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
centroid_calculation.hpp
Go to the documentation of this file.
1#pragma once
3
12public:
23 Eigen::Vector4f calculate_center(const sensor_msgs::msg::PointCloud2::SharedPtr& point_cloud,
24 const std::vector<int>& point_indices,
25 const Plane& plane = Plane()) const override;
26};
Abstract Class representing the logic for estimating the center position of a cone.
Concrete Class representing a centroid-based method for estimating the center position of a cone.
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.
The Plane class represents a 3D plane defined by its equation ax + by + cz + d = 0.
Definition plane.hpp:12