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
2
#include <
center_calculation/center_calculation.hpp
>
3
11
class
CentroidCalculator
:
public
CenterCalculator
{
12
public
:
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
};
center_calculation.hpp
CenterCalculator
Abstract Class representing the logic for estimating the center position of a cone.
Definition
center_calculation.hpp:14
CentroidCalculator
Concrete Class representing a centroid-based method for estimating the center position of a cone.
Definition
centroid_calculation.hpp:11
CentroidCalculator::calculate_center
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.
Definition
centroid_calculation.cpp:3
Plane
The Plane class represents a 3D plane defined by its equation ax + by + cz + d = 0.
Definition
plane.hpp:12
src
perception
include
center_calculation
centroid_calculation.hpp
Generated by
1.9.8