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
3
#include "
ground_removal/ground_removal.hpp
"
4
12
class
RANSAC
:
public
GroundRemoval
{
13
public
:
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
42
private
:
43
double
epsilon
;
44
int
n_tries
;
45
};
GroundGrid
Class to represent a ground height grid for ground proximity checks.
Definition
ground_grid.hpp:16
GroundRemoval
Abstract class for ground removal from a point cloud.
Definition
ground_removal.hpp:23
RANSAC
Ground removal using the RANSAC algorithm.
Definition
ransac.hpp:12
RANSAC::epsilon
double epsilon
Epsilon threshold for ground removal.
Definition
ransac.hpp:43
RANSAC::ground_removal
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
RANSAC::n_tries
int n_tries
Number of RANSAC iterations.
Definition
ransac.hpp:44
RANSAC::RANSAC
RANSAC()=default
Default constructor.
ground_removal.hpp
src
perception
include
ground_removal
ransac.hpp
Generated by
1.9.8