Go to the documentation of this file.
28 #include <gtest/gtest.h>
44 bool operator()(
const std::string&,
const std::string&)
const override {
return true; }
50 bool operator()(
const std::string&,
const std::string&)
const override {
return false; }
56 bool operator()(
const std::string& s1,
const std::string& s2)
const override
58 if (s1 ==
"link_1" && s2 ==
"link_2")
61 if (s1 ==
"link_1" && s2 ==
"link_3")
71 bool operator()(
const std::string& s1,
const std::string& s2)
const override
73 return (s1 ==
"link_1" && s2 ==
"link_2");
77 TEST(TesseractCollisionUnit, BulletDiscreteSimpleContactManagerConfigUnit)
83 TEST(TesseractCollisionUnit, BulletDiscreteBVHContactManagerConfigUnit)
89 TEST(TesseractCollisionUnit, BulletCastSimpleContactManagerConfigUnit)
95 TEST(TesseractCollisionUnit, BulletCastBVHContactManagerConfigUnit)
101 TEST(TesseractCollisionUnit, FCLDiscreteBVHContactManagerConfigUnit)
107 TEST(TesseractCollisionUnit, CombineContactAllowedFnUnit)
110 auto orig = std::make_shared<AlwaysTrueContactAllowedValidator>();
111 auto ovrd = std::make_shared<AlwaysFalseContactAllowedValidator>();
118 auto orig = std::make_shared<AlwaysTrueContactAllowedValidator>();
119 auto ovrd = std::make_shared<AlwaysFalseContactAllowedValidator>();
126 auto orig = std::make_shared<TestOrigContactAllowedValidator>();
127 auto ovrd = std::make_shared<TestOvrdContactAllowedValidator>();
139 auto orig = std::make_shared<TestOrigContactAllowedValidator>();
140 auto ovrd = std::make_shared<TestOvrdContactAllowedValidator>();
154 int main(
int argc,
char** argv)
156 testing::InitGoogleTest(&argc, argv);
158 return RUN_ALL_TESTS();
Tesseract ROS Bullet cast(continuous) simple collision manager.
@ ASSIGN
Replace the current ContactAllowedValidator with one generated from the ACM provided.
Tesseract ROS FCL contact checker implementation.
Tesseract ROS Bullet cast(continuous) BVH collision manager.
Tesseract ROS Bullet discrete simple collision manager.
@ OR
New ContactAllowedValidator combines the contact manager fn and the ACM generated fn with and OR.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define EXPECT_TRUE(args)
Tesseract Collision utils.
Tesseract ROS Bullet discrete BVH collision manager.
A BVH implementation of a bullet manager.
void runTest(ContinuousContactManager &checker)
A BVH implementation of a tesseract contact manager.
@ NONE
Do not apply AllowedCollisionMatrix.
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.
A simple implementation of a bullet manager which does not use BHV.
A FCL implementation of the discrete contact manager.
A simple implementation of a tesseract manager which does not use BHV.
@ AND
New ContactAllowedValidator combines the contact manager fn and the ACM generated fn with and AND.
#define EXPECT_FALSE(args)