Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
fov_trimming.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cmath>
4#include <cstring>
7
8#include "sensor_msgs/msg/point_cloud2.hpp"
9
11public:
21 virtual void fov_trimming(const sensor_msgs::msg::PointCloud2::SharedPtr& point_cloud,
22 sensor_msgs::msg::PointCloud2::SharedPtr& trimmed_cloud) const = 0;
23
24 bool within_limits(float x, float y, float z, float intensity, const TrimmingParameters& params,
25 const double max_range) const;
26
27protected:
29};
virtual void fov_trimming(const sensor_msgs::msg::PointCloud2::SharedPtr &point_cloud, sensor_msgs::msg::PointCloud2::SharedPtr &trimmed_cloud) const =0
Perform fov trimming on the input point cloud.
bool within_limits(float x, float y, float z, float intensity, const TrimmingParameters &params, const double max_range) const
TrimmingParameters params_
Structure to hold parameters for trimming point cloud data.