Filter class to check if a point lies within a range defined by a min and max radius.
More...
#include <point_cloud_utils.hpp>
|
| DistanceFilter (float32_t min_radius, float32_t max_radius) |
| Cosntructor. More...
|
|
template<typename T > |
bool8_t | operator() (const T &pt) const |
| Check if the point is within the allowed range of the filter. Check is done in square form to avoid sqrt More...
|
|
|
static constexpr auto | FEPS = std::numeric_limits<float32_t>::epsilon() |
|
Filter class to check if a point lies within a range defined by a min and max radius.
◆ DistanceFilter()
autoware::common::lidar_utils::DistanceFilter::DistanceFilter |
( |
float32_t |
min_radius, |
|
|
float32_t |
max_radius |
|
) |
| |
Cosntructor.
- Parameters
-
min_radius | The radius the point's radius should be greater than |
max_radius | The radius the point's radius should be lesser than |
◆ operator()()
template<typename T >
bool8_t autoware::common::lidar_utils::DistanceFilter::operator() |
( |
const T & |
pt | ) |
const |
|
inline |
Check if the point is within the allowed range of the filter. Check is done in square form to avoid sqrt
- Template Parameters
-
- Parameters
-
- Returns
- True if point is within the filter's range.
◆ FEPS
constexpr float32_t autoware::common::lidar_utils::DistanceFilter::FEPS = std::numeric_limits<float32_t>::epsilon() |
|
staticconstexpr |
The documentation for this class was generated from the following files: