1#ifndef TESSERACT_COLLISION_COLLISION_BOX_CAPSULE_UNIT_HPP
2#define TESSERACT_COLLISION_COLLISION_BOX_CAPSULE_UNIT_HPP
17 Eigen::Isometry3d box_pose;
18 box_pose.setIdentity();
22 obj1_shapes.push_back(
box);
23 obj1_poses.push_back(box_pose);
30 CollisionShapePtr thin_box = std::make_shared<tesseract_geometry::Box>(0.1, 1, 1);
31 Eigen::Isometry3d thin_box_pose;
32 thin_box_pose.setIdentity();
36 obj2_shapes.push_back(thin_box);
37 obj2_poses.push_back(thin_box_pose);
45 Eigen::Isometry3d capsule_pose;
46 capsule_pose.setIdentity();
51 obj3_poses.push_back(capsule_pose);
58 CollisionShapePtr remove_box = std::make_shared<tesseract_geometry::Box>(0.1, 1, 1);
59 Eigen::Isometry3d remove_box_pose;
60 thin_box_pose.setIdentity();
64 obj4_shapes.push_back(remove_box);
65 obj4_poses.push_back(remove_box_pose);
96 EXPECT_TRUE(cgt.isApprox(Eigen::Isometry3d::Identity(), 1e-5));
113 std::vector<std::string>
active_links{
"box_link",
"capsule_link" };
125 location[
"box_link"] = Eigen::Isometry3d::Identity();
126 location[
"capsule_link"] = Eigen::Isometry3d::Identity();
127 location[
"capsule_link"].translation()(0) = 0.2;
142 std::vector<int> idx = { 0, 1, 1 };
165 location[
"capsule_link"].translation() = Eigen::Vector3d(0, 0, 1);
double getMaxCollisionMargin() const
Get the largest collision margin.
Definition: collision_margin_data.h:165
EXPECT_NEAR(config.contact_manager_config.margin_data.getDefaultCollisionMargin(), 5, 1e-6)
tesseract_collision::ContactResultVector result_vector
Definition: collision_core_unit.cpp:410
results distance
Definition: collision_core_unit.cpp:139
results link_names[0]
Definition: collision_core_unit.cpp:146
results normal
Definition: collision_core_unit.cpp:154
EXPECT_FALSE(tesseract_collision::isContactAllowed("base_link", "link_2", acm, false))
results nearest_points[0]
Definition: collision_core_unit.cpp:140
results single_contact_point
Definition: collision_core_unit.cpp:161
EXPECT_TRUE(tesseract_common::isIdentical< tesseract_collision::ObjectPairKey >(pairs, check_pairs, false))
void addCollisionObjects(ContinuousContactManager &checker)
Definition: collision_box_box_cast_unit.hpp:11
Definition: large_dataset_benchmarks.hpp:17
void runTest(ContinuousContactManager &checker)
Definition: collision_box_box_cast_unit.hpp:111
tesseract_common::CollisionMarginData CollisionMarginData
Definition: types.h:50
tesseract_geometry::Geometry::Ptr CollisionShapePtr
Definition: types.h:49
std::vector< tesseract_geometry::Geometry::ConstPtr > CollisionShapesConst
Definition: types.h:47
tesseract_common::AlignedVector< ContactResult > ContactResultVector
Definition: types.h:134
AlignedMap< std::string, Eigen::Isometry3d > TransformMap
Definition: types.h:66
template bool isIdentical< std::string >(const std::vector< std::string > &, const std::vector< std::string > &, bool, const std::function< bool(const std::string &, const std::string &)> &, const std::function< bool(const std::string &, const std::string &)> &)
AlignedVector< Eigen::Isometry3d > VectorIsometry3d
Definition: types.h:62
std::vector< std::string > active_links
Definition: tesseract_environment_collision.cpp:112
auto box
Definition: tesseract_geometry_unit.cpp:18
auto capsule
Definition: tesseract_geometry_unit.cpp:21