geometry-object-filter.hpp
Go to the documentation of this file.
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 
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  {
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__
pinocchio::ModelItem::parentJoint
JointIndex parentJoint
Index of the parent joint.
Definition: model-item.hpp:28
instance-filter.hpp
pinocchio::GeometryObjectFilterBase
Definition: geometry-object-filter.hpp:13
pinocchio::GeometryObject
Definition: multibody/geometry-object.hpp:87
pinocchio::GeometryObjectFilterSelectByJoint
Definition: geometry-object-filter.hpp:27
pinocchio::InstanceFilterBase
Instance filter base class.
Definition: instance-filter.hpp:15
pinocchio::GeometryObjectFilterSelectByJoint::operator()
bool operator()(const GeometryObject &geometry_object) const
Returns true if the input obj matches the filter conditions.
Definition: geometry-object-filter.hpp:34
pinocchio::GeometryObjectFilterSelectByJoint::GeometryObjectFilterSelectByJoint
GeometryObjectFilterSelectByJoint(const size_t joint_id)
Definition: geometry-object-filter.hpp:29
pinocchio::GeometryObjectFilterNothing::operator()
bool operator()(const GeometryObject &) const
Returns true if the input obj matches the filter conditions.
Definition: geometry-object-filter.hpp:20
pinocchio::GeometryObjectFilterSelectByJoint::joint_id
const size_t joint_id
Definition: geometry-object-filter.hpp:39
pinocchio::GeometryObjectFilterNothing
Definition: geometry-object-filter.hpp:18
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09