Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
center_calculation.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <sensor_msgs/msg/point_cloud2.hpp>
4#include <string>
6#include <utils/plane.hpp>
7
15public:
27 virtual Eigen::Vector4f calculate_center(
28 const sensor_msgs::msg::PointCloud2::SharedPtr& point_cloud,
29 const std::vector<int>& point_indices, const Plane& plane = Plane()) const = 0;
30};
Abstract Class representing the logic for estimating the center position of a cone.
virtual Eigen::Vector4f calculate_center(const sensor_msgs::msg::PointCloud2::SharedPtr &point_cloud, const std::vector< int > &point_indices, const Plane &plane=Plane()) const =0
Estimates the center position of a cone.
The Plane class represents a 3D plane defined by its equation ax + by + cz + d = 0.
Definition plane.hpp:12