utils.cpp
Go to the documentation of this file.
1 
27 
28 namespace tesseract_collision
29 {
33  ACMOverrideType type)
34 {
35  switch (type)
36  {
38  return original;
40  return override;
42  {
43  if (original == nullptr)
44  return nullptr;
45 
46  std::vector<std::shared_ptr<const tesseract_common::ContactAllowedValidator>> validators = { original, override };
47  return std::make_shared<tesseract_common::CombinedContactAllowedValidator>(
49  }
51  {
52  if (original == nullptr)
53  return override;
54 
55  std::vector<std::shared_ptr<const tesseract_common::ContactAllowedValidator>> validators = { original, override };
56  return std::make_shared<tesseract_common::CombinedContactAllowedValidator>(
58  }
59  default: // LCOV_EXCL_LINE
60  return original; // LCOV_EXCL_LINE
61  }
62 }
63 } // namespace tesseract_collision
tesseract_collision::ACMOverrideType::ASSIGN
@ ASSIGN
Replace the current ContactAllowedValidator with one generated from the ACM provided.
tesseract_collision::ACMOverrideType::OR
@ OR
New ContactAllowedValidator combines the contact manager fn and the ACM generated fn with and OR.
tesseract_collision::ACMOverrideType
ACMOverrideType
Identifies how the provided AllowedCollisionMatrix should be applied relative to the isAllowedFn in t...
Definition: types.h:399
utils.h
Tesseract Collision utils.
tesseract_common::CombinedContactAllowedValidatorType::AND
@ AND
tesseract_common::CombinedContactAllowedValidatorType::OR
@ OR
tesseract_common::ContactAllowedValidator::ConstPtr
std::shared_ptr< const ContactAllowedValidator > ConstPtr
type
type
tesseract_collision
Definition: bullet_cast_bvh_manager.h:48
tesseract_collision::ACMOverrideType::NONE
@ NONE
Do not apply AllowedCollisionMatrix.
tesseract_collision::combineContactAllowedValidators
tesseract_common::ContactAllowedValidator::ConstPtr combineContactAllowedValidators(tesseract_common::ContactAllowedValidator::ConstPtr original, tesseract_common::ContactAllowedValidator::ConstPtr override, ACMOverrideType type=ACMOverrideType::OR)
Combines two ContactAllowedValidator using the override type.
Definition: utils.cpp:31
tesseract_collision::ACMOverrideType::AND
@ AND
New ContactAllowedValidator combines the contact manager fn and the ACM generated fn with and AND.


tesseract_collision
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:52