Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
|
Filter point clouds and indices based on a function object passed in the ctor. More...
#include <functor_filter.h>
Public Types | |
using | FunctionObjectT = FunctionObject |
Public Member Functions | |
FunctorFilter (FunctionObjectT function_object, bool extract_removed_indices=false) | |
Constructor. More... | |
const FunctionObjectT & | getFunctionObject () const noexcept |
FunctionObjectT & | getFunctionObject () noexcept |
void | applyFilter (Indices &indices) override |
Filtered results are indexed by an indices array. More... | |
void | applyFilter (PointCloud< PointT > &output) override |
Protected Member Functions | |
FunctorFilter (bool extract_removed_indices=false) | |
ctor to be used by derived classes with member function as FilterFunction More... | |
void | setFunctionObject (FunctionObjectT function_object) const noexcept |
utility function for derived class More... | |
Protected Attributes | |
bool | keep_organized_ = false |
float | user_filter_value_ = std::numeric_limits<float>::quiet_NaN() |
Private Types | |
using | Base = FilterIndices< PointT > |
using | PCL_Base = PCLBase< PointT > |
Private Attributes | |
FunctionObjectT | functionObject_ |
Filter point clouds and indices based on a function object passed in the ctor.
The function object can be anything (lambda, std::function, invocable class, etc.) that can be moved into the class. Additionally, it must satisfy the condition is_function_object_for_filter_v
Definition at line 45 of file functor_filter.h.
|
private |
Definition at line 46 of file functor_filter.h.
using pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::FunctionObjectT = FunctionObject |
Definition at line 50 of file functor_filter.h.
|
private |
Definition at line 47 of file functor_filter.h.
|
inline |
Constructor.
[in] | function_object | Object of effective type FilterFunction in order to filter out the indices for which it returns false |
[in] | extract_removed_indices | Set to true if you want to be able to extract the indices of points being removed (default = false). |
Definition at line 77 of file functor_filter.h.
|
inlineprotected |
ctor to be used by derived classes with member function as FilterFunction
[in] | extract_removed_indices | Set to true if you want to be able to extract the indices of points being removed (default = false). |
setFunctionObject
has been called Do not call any filter routine until then Definition at line 160 of file functor_filter.h.
|
inlineoverride |
Filtered results are indexed by an indices array.
[out] | indices | The resultant indices. |
Definition at line 100 of file functor_filter.h.
References pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::functionObject_.
Referenced by pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter().
|
inlineoverride |
Definition at line 120 of file functor_filter.h.
References pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter(), pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::keep_organized_, and pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::user_filter_value_.
|
inlinenoexcept |
Definition at line 84 of file functor_filter.h.
References pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::functionObject_.
|
inlinenoexcept |
Definition at line 90 of file functor_filter.h.
References pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::functionObject_.
|
inlineprotectednoexcept |
utility function for derived class
[in] | function_object | Object of effective type FilterFunction in order to filter out the indices for which it returns false |
Definition at line 171 of file functor_filter.h.
References pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::functionObject_.
|
private |
Definition at line 68 of file functor_filter.h.
Referenced by pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter(), pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::getFunctionObject(), and pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::setFunctionObject().
|
protected |
Definition at line 63 of file functor_filter.h.
Referenced by pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter().
|
protected |
Definition at line 64 of file functor_filter.h.
Referenced by pcl::experimental::advanced::FunctorFilter< PointT, FunctionObject >::applyFilter().