Skip to content

Commit

Permalink
w2
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 29, 2024
1 parent 5697dee commit 1f8648c
Showing 1 changed file with 44 additions and 23 deletions.
67 changes: 44 additions & 23 deletions tests/integration/test_Collision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,38 +823,59 @@ void testConeCone(const std::shared_ptr<CollisionDetector>& cd)
//==============================================================================
TEST_F(Collision, testConeCone)
{
auto fcl_mesh_dart = FCLCollisionDetector::create();
fcl_mesh_dart->setPrimitiveShapeType(FCLCollisionDetector::MESH);
fcl_mesh_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
testConeCone(fcl_mesh_dart);
{
SCOPED_TRACE("FCLCollisionDetector (MESH, DART)");
auto fcl_mesh_dart = FCLCollisionDetector::create();
fcl_mesh_dart->setPrimitiveShapeType(FCLCollisionDetector::MESH);
fcl_mesh_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
testConeCone(fcl_mesh_dart);
}

auto fcl_mesh_fcl = FCLCollisionDetector::create();
fcl_mesh_fcl->setPrimitiveShapeType(FCLCollisionDetector::MESH);
fcl_mesh_fcl->setContactPointComputationMethod(FCLCollisionDetector::FCL);
testConeCone(fcl_mesh_fcl);
{
SCOPED_TRACE("FCLCollisionDetector (MESH, FCL)");
auto fcl_mesh_fcl = FCLCollisionDetector::create();
fcl_mesh_fcl->setPrimitiveShapeType(FCLCollisionDetector::MESH);
fcl_mesh_fcl->setContactPointComputationMethod(FCLCollisionDetector::FCL);
testConeCone(fcl_mesh_fcl);
}

auto fcl_prim_dart = FCLCollisionDetector::create();
fcl_prim_dart->setPrimitiveShapeType(FCLCollisionDetector::PRIMITIVE);
fcl_prim_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
testConeCone(fcl_prim_dart);
{
SCOPED_TRACE("FCLCollisionDetector (PRIMITIVE, DART)");
auto fcl_prim_dart = FCLCollisionDetector::create();
fcl_prim_dart->setPrimitiveShapeType(FCLCollisionDetector::PRIMITIVE);
fcl_prim_dart->setContactPointComputationMethod(FCLCollisionDetector::DART);
testConeCone(fcl_prim_dart);
}

auto fcl_prim_fcl = FCLCollisionDetector::create();
fcl_prim_fcl->setPrimitiveShapeType(FCLCollisionDetector::PRIMITIVE);
fcl_prim_fcl->setContactPointComputationMethod(FCLCollisionDetector::FCL);
testConeCone(fcl_prim_fcl);
{
SCOPED_TRACE("FCLCollisionDetector (PRIMITIVE, FCL)");
auto fcl_prim_fcl = FCLCollisionDetector::create();
fcl_prim_fcl->setPrimitiveShapeType(FCLCollisionDetector::PRIMITIVE);
fcl_prim_fcl->setContactPointComputationMethod(FCLCollisionDetector::FCL);
testConeCone(fcl_prim_fcl);
}

#if HAVE_ODE && !defined(ODE_WITH_LIBCCD_BOX_CYL)
auto ode = OdeCollisionDetector::create();
testConeCone(ode);
#if HAVE_ODE
{
// SCOPED_TRACE("OdeCollisionDetector");
// auto ode = OdeCollisionDetector::create();
// testConeCone(ode);
}
#endif

#if HAVE_BULLET
auto bullet = BulletCollisionDetector::create();
testConeCone(bullet);
{
SCOPED_TRACE("BulletCollisionDetector");
auto bullet = BulletCollisionDetector::create();
testConeCone(bullet);
}
#endif

// auto dart = DARTCollisionDetector::create();
// testConeCone(dart);
{
// SCOPED_TRACE("DARTCollisionDetector");
// auto dart = DARTCollisionDetector::create();
// testConeCone(dart);
}
}

//==============================================================================
Expand Down

0 comments on commit 1f8648c

Please sign in to comment.