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