#include <boost/test/included/unit_test.hpp>
#include "coal/config.hh"
#include "coal/broadphase/broadphase.h"
#include "coal/shape/geometric_shape_to_BVH_model.h"
#include "coal/math/transform.h"
#include "utility.h"
#include <boost/math/constants/constants.hpp>
#include <iostream>
#include <iomanip>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE COAL_BROADPHASE |
Functions | |
BOOST_AUTO_TEST_CASE (test_core_bf_broad_phase_distance) | |
check broad phase distance More... | |
BOOST_AUTO_TEST_CASE (test_core_bf_broad_phase_self_distance) | |
check broad phase self distance More... | |
BOOST_AUTO_TEST_CASE (test_core_mesh_bf_broad_phase_distance_mesh) | |
check broad phase distance More... | |
BOOST_AUTO_TEST_CASE (test_core_mesh_bf_broad_phase_self_distance_mesh) | |
check broad phase self distance More... | |
void | broad_phase_distance_test (double env_scale, std::size_t env_size, std::size_t query_size, bool use_mesh=false) |
test for broad phase distance More... | |
void | broad_phase_self_distance_test (double env_scale, std::size_t env_size, bool use_mesh=false) |
test for broad phase self distance More... | |
void | generateSelfDistanceEnvironments (std::vector< CollisionObject * > &env, double env_scale, std::size_t n) |
Generate environment with 3 * n objects for self distance, so we try to make sure none of them collide with each other. More... | |
void | generateSelfDistanceEnvironmentsMesh (std::vector< CollisionObject * > &env, double env_scale, std::size_t n) |
Generate environment with 3 * n objects for self distance, but all in meshes. More... | |
Variables | |
CoalScalar | DELTA = 0.01 |
#define BOOST_TEST_MODULE COAL_BROADPHASE |
Definition at line 38 of file broadphase.cpp.
BOOST_AUTO_TEST_CASE | ( | test_core_bf_broad_phase_distance | ) |
check broad phase distance
Definition at line 102 of file broadphase.cpp.
BOOST_AUTO_TEST_CASE | ( | test_core_bf_broad_phase_self_distance | ) |
check broad phase self distance
Definition at line 117 of file broadphase.cpp.
BOOST_AUTO_TEST_CASE | ( | test_core_mesh_bf_broad_phase_distance_mesh | ) |
check broad phase distance
Definition at line 124 of file broadphase.cpp.
BOOST_AUTO_TEST_CASE | ( | test_core_mesh_bf_broad_phase_self_distance_mesh | ) |
check broad phase self distance
Definition at line 139 of file broadphase.cpp.
void broad_phase_distance_test | ( | double | env_scale, |
std::size_t | env_size, | ||
std::size_t | query_size, | ||
bool | use_mesh = false |
||
) |
test for broad phase distance
Definition at line 415 of file broadphase.cpp.
void broad_phase_self_distance_test | ( | double | env_scale, |
std::size_t | env_size, | ||
bool | use_mesh = false |
||
) |
test for broad phase self distance
Definition at line 293 of file broadphase.cpp.
void generateSelfDistanceEnvironments | ( | std::vector< CollisionObject * > & | env, |
double | env_scale, | ||
std::size_t | n | ||
) |
Generate environment with 3 * n objects for self distance, so we try to make sure none of them collide with each other.
Definition at line 145 of file broadphase.cpp.
void generateSelfDistanceEnvironmentsMesh | ( | std::vector< CollisionObject * > & | env, |
double | env_scale, | ||
std::size_t | n | ||
) |
Generate environment with 3 * n objects for self distance, but all in meshes.
Definition at line 215 of file broadphase.cpp.
CoalScalar DELTA = 0.01 |
Definition at line 78 of file broadphase.cpp.