Skip to content

Commit

Permalink
Enable tests that were accidentally disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 28, 2017
1 parent ebb5759 commit f44c772
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cmake/DARTFindDependencies.cmake
Expand Up @@ -186,7 +186,7 @@ else()
endif()

# ODE
find_package(ODE 0.13 QUIET)
find_package(ODE 0.11 QUIET)
dart_check_optional_package(ODE "dart-collision-ode" "ode" "0.11")
if(ODE_FOUND)
set(HAVE_ODE_COLLISION TRUE)
Expand Down
30 changes: 15 additions & 15 deletions unittests/comprehensive/test_Collision.cpp
Expand Up @@ -822,10 +822,10 @@ void testBoxBox(const std::shared_ptr<CollisionDetector>& cd,
//==============================================================================
TEST_F(COLLISION, BoxBox)
{
//auto fcl_mesh_dart = FCLCollisionDetector::create();
//fcl_mesh_dart->setPrimitiveShapeType(FCLCollisionDetector::MESH);
//fcl_mesh_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
//testBoxBox(fcl_mesh_dart);
auto fcl_mesh_dart = FCLCollisionDetector::create();
fcl_mesh_dart->setPrimitiveShapeType(FCLCollisionDetector::MESH);
fcl_mesh_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
testBoxBox(fcl_mesh_dart);

// auto fcl_prim_fcl = FCLCollisionDetector::create();
// fcl_prim_fcl->setPrimitiveShapeType(FCLCollisionDetector::MESH);
Expand All @@ -847,13 +847,13 @@ TEST_F(COLLISION, BoxBox)
testBoxBox(ode);
#endif

//#if HAVE_BULLET_COLLISION
// auto bullet = BulletCollisionDetector::create();
// testBoxBox(bullet);
//#endif
#if HAVE_BULLET_COLLISION
auto bullet = BulletCollisionDetector::create();
testBoxBox(bullet);
#endif

// auto dart = DARTCollisionDetector::create();
// testBoxBox(dart);
auto dart = DARTCollisionDetector::create();
testBoxBox(dart);
}

//==============================================================================
Expand Down Expand Up @@ -953,10 +953,10 @@ void testCylinderCylinder(const std::shared_ptr<CollisionDetector>& cd)
//==============================================================================
TEST_F(COLLISION, testCylinderCylinder)
{
// auto fcl_mesh_dart = FCLCollisionDetector::create();
// fcl_mesh_dart->setPrimitiveShapeType(FCLCollisionDetector::MESH);
// fcl_mesh_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
// testCylinderCylinder(fcl_mesh_dart);
auto fcl_mesh_dart = FCLCollisionDetector::create();
fcl_mesh_dart->setPrimitiveShapeType(FCLCollisionDetector::MESH);
fcl_mesh_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
testCylinderCylinder(fcl_mesh_dart);

// auto fcl_prim_fcl = FCLCollisionDetector::create();
// fcl_prim_fcl->setPrimitiveShapeType(FCLCollisionDetector::MESH);
Expand Down Expand Up @@ -1016,7 +1016,7 @@ void testCapsuleCapsule(const std::shared_ptr<CollisionDetector>& cd)

result.clear();
simpleFrame1->setTranslation(Eigen::Vector3d::Zero());
simpleFrame2->setTranslation(Eigen::Vector3d(0.75, 0.0, 0.0));
simpleFrame2->setTranslation(Eigen::Vector3d(0.74, 0.0, 0.0));
EXPECT_TRUE(group->collide(option, &result));
EXPECT_TRUE(result.getNumContacts() >= 1u);
}
Expand Down

0 comments on commit f44c772

Please sign in to comment.