Skip to content

Commit

Permalink
[test] Fix cone-cone collision tests
Browse files Browse the repository at this point in the history
(cherry picked from commit de7eaef5384d7a8cbe29b75abeb564b845ed697a)
  • Loading branch information
jslee02 committed Mar 30, 2024
1 parent 211dcca commit ce1d335
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
tracy
urdfdom
triplet: x64-windows
revision: "2024.02.14"
revision: "2024.03.25"
github-binarycache: true
token: ${{ github.token }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_dartpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
tinyxml2
urdfdom
triplet: x64-windows
revision: "2024.02.14"
revision: "2024.03.25"
github-binarycache: true
token: ${{ github.token }}

Expand Down
4 changes: 2 additions & 2 deletions scripts/install_osx.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -ex

brew update > /dev/null
brew update >/dev/null
brew bundle || brew bundle

# OpenSceneGraph
Expand All @@ -14,5 +14,5 @@ fi

# Use pip for the default Python3 version
py_version=$(python3 -c "import sys; print('{}.{}'.format(sys.version_info[0], sys.version_info[1]))")
py_version_major=`echo $py_version | cut -d. -f1`
py_version_major=$(echo $py_version | cut -d. -f1)
pip$py_version_major install -U numpy pytest
65 changes: 43 additions & 22 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);
testCylinderCylinder(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);
testCylinderCylinder(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);
testCylinderCylinder(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);
testCylinderCylinder(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
auto ode = OdeCollisionDetector::create();
testCylinderCylinder(ode);
{
// SCOPED_TRACE("OdeCollisionDetector");
// auto ode = OdeCollisionDetector::create();
// testConeCone(ode);
}
#endif

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

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

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

0 comments on commit ce1d335

Please sign in to comment.