Classes | Macros | Typedefs | Enumerations | Functions | Variables
test/collision.cpp File Reference
#include <boost/mpl/vector.hpp>
#include <boost/test/included/unit_test.hpp>
#include <fstream>
#include <boost/assign/list_of.hpp>
#include "coal/fwd.hh"
#include "coal/collision.h"
#include "coal/BV/BV.h"
#include "coal/shape/geometric_shapes.h"
#include "coal/narrowphase/narrowphase.h"
#include "coal/mesh_loader/assimp.h"
#include "coal/internal/traversal_node_bvhs.h"
#include "coal/internal/traversal_node_setup.h"
#include "../src/collision_node.h"
#include "coal/internal/BV_splitter.h"
#include "coal/timings.h"
#include "utility.h"
#include "fcl_resources/config.h"
Include dependency graph for test/collision.cpp:

Go to the source code of this file.

Classes

struct  base_traits
 
struct  mesh_mesh_run_test
 
struct  traits< BV >
 
struct  traits< KDOP< N >, Oriented, recursive >
 
struct  wrap< T >
 

Macros

#define BENCHMARK(stream)
 
#define BENCHMARK_HEADER(stream)
 
#define BENCHMARK_NEXT()
 
#define BOOST_TEST_MODULE   COAL_COLLISION
 
#define BV_STR_SPECIALIZATION(bv)
 

Typedefs

typedef boost::mpl::vector< OBB, RSS, KDOP< 24 >, KDOP< 18 >, KDOP< 16 >, kIOS, OBBRSSBVs_t
 
typedef std::vector< ContactContacts_t
 

Enumerations

enum  { Oriented = true, NonOriented = false, Recursive = true, NonRecursive = false }
 

Functions

 BOOST_AUTO_TEST_CASE (mesh_mesh)
 
 BOOST_AUTO_TEST_CASE (mesh_mesh_benchmark)
 
 BOOST_AUTO_TEST_CASE (OBB_AABB_test)
 
 BOOST_AUTO_TEST_CASE (OBB_Box_test)
 
 BOOST_AUTO_TEST_CASE (OBB_shape_test)
 
template<typename BV >
const char * str ()
 

Variables

std::ostream * bench_stream = NULL
 
bool bs_hp = false
 
bool bs_nl = true
 
int num_max_contacts = (std::numeric_limits<int>::max)()
 
std::vector< SplitMethodTypesplitMethods
 

Macro Definition Documentation

◆ BENCHMARK

#define BENCHMARK (   stream)
Value:
if (bench_stream != NULL) { \
*bench_stream << (bs_nl ? "" : ", ") << stream; \
bs_nl = false; \
}

Definition at line 251 of file test/collision.cpp.

◆ BENCHMARK_HEADER

#define BENCHMARK_HEADER (   stream)
Value:
if (!bs_hp) { \
BENCHMARK(stream) \
}

Definition at line 256 of file test/collision.cpp.

◆ BENCHMARK_NEXT

#define BENCHMARK_NEXT ( )
Value:
if (bench_stream != NULL && !bs_nl) { \
*bench_stream << '\n'; \
bs_nl = true; \
bs_hp = true; \
}

Definition at line 260 of file test/collision.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   COAL_COLLISION
Author
Joseph Mirabel

Definition at line 40 of file test/collision.cpp.

◆ BV_STR_SPECIALIZATION

#define BV_STR_SPECIALIZATION (   bv)
Value:
template <> \
const char* str<bv>() { \
return #bv; \
}

Definition at line 273 of file test/collision.cpp.

Typedef Documentation

◆ BVs_t

typedef boost::mpl::vector<OBB, RSS, KDOP<24>, KDOP<18>, KDOP<16>, kIOS, OBBRSS> BVs_t

Definition at line 269 of file test/collision.cpp.

◆ Contacts_t

typedef std::vector<Contact> Contacts_t

Definition at line 267 of file test/collision.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Oriented 
NonOriented 
Recursive 
NonRecursive 

Definition at line 296 of file test/collision.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( mesh_mesh  )

Definition at line 625 of file test/collision.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( mesh_mesh_benchmark  )

Definition at line 656 of file test/collision.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( OBB_AABB_test  )

Definition at line 208 of file test/collision.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( OBB_Box_test  )

Definition at line 75 of file test/collision.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( OBB_shape_test  )

Definition at line 125 of file test/collision.cpp.

◆ str()

template<typename BV >
const char* str ( )

Definition at line 885 of file doxygen_xml_parser.py.

Variable Documentation

◆ bench_stream

std::ostream* bench_stream = NULL

Definition at line 248 of file test/collision.cpp.

◆ bs_hp

bool bs_hp = false

Definition at line 250 of file test/collision.cpp.

◆ bs_nl

bool bs_nl = true

Definition at line 249 of file test/collision.cpp.

◆ num_max_contacts

int num_max_contacts = (std::numeric_limits<int>::max)()

Definition at line 73 of file test/collision.cpp.

◆ splitMethods

std::vector<SplitMethodType> splitMethods
Initial value:

Definition at line 270 of file test/collision.cpp.

bench_stream
std::ostream * bench_stream
Definition: test/collision.cpp:248
bs_hp
bool bs_hp
Definition: test/collision.cpp:250
coal::SPLIT_METHOD_MEAN
@ SPLIT_METHOD_MEAN
Definition: coal/internal/BV_splitter.h:51
bs_nl
bool bs_nl
Definition: test/collision.cpp:249
coal::SPLIT_METHOD_MEDIAN
@ SPLIT_METHOD_MEDIAN
Definition: coal/internal/BV_splitter.h:52
coal::SPLIT_METHOD_BV_CENTER
@ SPLIT_METHOD_BV_CENTER
Definition: coal/internal/BV_splitter.h:53


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:59