pinocchio  3.3.1
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
InstanceFilterBase< T > Struct Template Referenceabstract

Instance filter base class. More...

#include <pinocchio/multibody/instance-filter.hpp>

Public Member Functions

template<typename Allocator >
std::vector< size_t > apply (const std::vector< T, Allocator > &object_vector) const
 Apply the filter on the given vector of objects and returns the list of indexes of the objects matching the filter conditions. More...
 
virtual bool operator() (const T &obj) const =0
 Returns true if the input obj matches the filter conditions. More...
 

Detailed Description

template<typename T>
struct pinocchio::InstanceFilterBase< T >

Instance filter base class.

Definition at line 15 of file instance-filter.hpp.

Member Function Documentation

◆ apply()

std::vector<size_t> apply ( const std::vector< T, Allocator > &  object_vector) const
inline

Apply the filter on the given vector of objects and returns the list of indexes of the objects matching the filter conditions.

Parameters
[in]object_vectorvector of objects.
Returns
the list of indexes of the objects matching the filter conditions.

Definition at line 35 of file instance-filter.hpp.

◆ operator()()

virtual bool operator() ( const T &  obj) const
pure virtual

Returns true if the input obj matches the filter conditions.

Parameters
[in]objinput geometry object to filter or not.
Returns
true if the obj matches the filter conditions

Implemented in GeometryObjectFilterSelectByJoint, and GeometryObjectFilterNothing.


The documentation for this struct was generated from the following file: