Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
ransac.hpp
Go to the documentation of this file.
1#pragma once
2
4
12class RANSAC : public GroundRemoval {
13public:
19 RANSAC(const double epsilon, const int n_tries);
20
26 RANSAC() = default;
27
38 void ground_removal(const sensor_msgs::msg::PointCloud2::SharedPtr& trimmed_point_cloud,
39 sensor_msgs::msg::PointCloud2::SharedPtr& ground_removed_point_cloud,
40 GroundGrid& ground_grid) const override;
41
42private:
43 double epsilon;
44 int n_tries;
45};
Class to represent a ground height grid for ground proximity checks.
Abstract class for ground removal from a point cloud.
Ground removal using the RANSAC algorithm.
Definition ransac.hpp:12
double epsilon
Epsilon threshold for ground removal.
Definition ransac.hpp:43
void ground_removal(const sensor_msgs::msg::PointCloud2::SharedPtr &trimmed_point_cloud, sensor_msgs::msg::PointCloud2::SharedPtr &ground_removed_point_cloud, GroundGrid &ground_grid) const override
Perform ground removal using the RANSAC algorithm.
Definition ransac.cpp:8
int n_tries
Number of RANSAC iterations.
Definition ransac.hpp:44
RANSAC()=default
Default constructor.