pinocchio  3.2.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
geometry-object-filter.hpp
1 //
2 // Copyright (c) 2022 INRIA
3 //
4 
5 #ifndef __pinocchio_multibody_geometry_object_filter_hpp__
6 #define __pinocchio_multibody_geometry_object_filter_hpp__
7 
8 #include "pinocchio/multibody/instance-filter.hpp"
9 
10 namespace pinocchio
11 {
12 
14  {
15 
16  }; // struct GeometryObjectFilterBase
17 
19  {
20  bool operator()(const GeometryObject &) const
21  {
22  return true;
23  }
24 
25  }; // struct GeometryObjectFilterNothing
26 
28  {
29  GeometryObjectFilterSelectByJoint(const size_t joint_id)
30  : joint_id(joint_id)
31  {
32  }
33 
34  bool operator()(const GeometryObject & geometry_object) const
35  {
36  return geometry_object.parentJoint == joint_id;
37  }
38 
39  const size_t joint_id;
40 
41  }; // struct GeometryObjectFilterSelectByJoint
42 
43 } // namespace pinocchio
44 
45 #endif // #ifndef __pinocchio_multibody_geometry_object_filter_hpp__
Main pinocchio namespace.
Definition: treeview.dox:11
bool operator()(const GeometryObject &) const
Returns true if the input obj matches the filter conditions.
bool operator()(const GeometryObject &geometry_object) const
Returns true if the input obj matches the filter conditions.
Instance filter base class.
JointIndex parentJoint
Index of the parent joint.
Definition: model-item.hpp:28