Skip to content

Commit

Permalink
Split octomap test file into 3 test files
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Aug 9, 2016
1 parent cf9b27a commit 741fd9d
Show file tree
Hide file tree
Showing 10 changed files with 1,055 additions and 923 deletions.
2 changes: 2 additions & 0 deletions include/fcl/traversal/traversal_node_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class TraversalNodeBase

/// @brief configuration of second object
Transform3<Scalar> tf2;

EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};

//============================================================================//
Expand Down
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ set(tests
)

if (FCL_HAVE_OCTOMAP)
list(APPEND tests test_fcl_octomap.cpp)
list(APPEND tests test_fcl_octomap_cost.cpp)
list(APPEND tests test_fcl_octomap_collision.cpp)
list(APPEND tests test_fcl_octomap_distance.cpp)
endif()

macro(add_fcl_test test_file_name)
Expand Down
14 changes: 0 additions & 14 deletions test/test_fcl_broadphase_collision_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@

using namespace fcl;

struct TStruct
{
std::vector<double> records;
double overall_time;

TStruct() { overall_time = 0; }

void push_back(double t)
{
records.push_back(t);
overall_time += t;
}
};

/// @brief test for broad phase update
template <typename Scalar>
void broad_phase_update_collision_test(Scalar env_scale, std::size_t env_size, std::size_t query_size, std::size_t num_max_contacts = 1, bool exhaustive = false, bool use_mesh = false);
Expand Down
14 changes: 0 additions & 14 deletions test/test_fcl_broadphase_collision_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@

using namespace fcl;

struct TStruct
{
std::vector<double> records;
double overall_time;

TStruct() { overall_time = 0; }

void push_back(double t)
{
records.push_back(t);
overall_time += t;
}
};

/// @brief test for broad phase collision and self collision
template <typename Scalar>
void broad_phase_collision_test(Scalar env_scale, std::size_t env_size, std::size_t query_size, std::size_t num_max_contacts = 1, bool exhaustive = false, bool use_mesh = false);
Expand Down
14 changes: 0 additions & 14 deletions test/test_fcl_broadphase_distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@

using namespace fcl;

struct TStruct
{
std::vector<double> records;
double overall_time;

TStruct() { overall_time = 0; }

void push_back(double t)
{
records.push_back(t);
overall_time += t;
}
};

/// @brief Generate environment with 3 * n objects for self distance, so we try to make sure none of them collide with each other.
template <typename Scalar>
void generateSelfDistanceEnvironments(std::vector<CollisionObject<Scalar>*>& env, Scalar env_scale, std::size_t n);
Expand Down
Loading

0 comments on commit 741fd9d

Please sign in to comment.