Macros | Typedefs | Functions
normal_and_nearest_points.cpp File Reference
#include <boost/test/included/unit_test.hpp>
#include "coal/fwd.hh"
#include "coal/shape/geometric_shapes.h"
#include "coal/collision_data.h"
#include "coal/BV/OBBRSS.h"
#include "coal/BVH/BVH_model.h"
#include "coal/shape/geometric_shape_to_BVH_model.h"
#include "utility.h"
Include dependency graph for normal_and_nearest_points.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   COAL_NORMAL_AND_NEAREST_POINTS
 

Typedefs

typedef Eigen::Vector2d Vec2d
 

Functions

 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_box_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_box_plane)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_bvh_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_capsule_capsule)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_capsule_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_capsule_plane)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_cone_cylinder)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_cone_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_cone_plane)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_cylinder_ellipsoid)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_cylinder_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_cylinder_plane)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_ellipsoid_ellipsoid)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_ellipsoid_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_ellipsoid_plane)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_mesh_box)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_mesh_ellipsoid)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_mesh_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_mesh_mesh)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_sphere_box)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_sphere_capsule)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_sphere_cylinder)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_sphere_halfspace)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_sphere_plane)
 
 BOOST_AUTO_TEST_CASE (test_normal_and_nearest_points_sphere_sphere)
 
CoalScalar generateRandomNumber (CoalScalar min, CoalScalar max)
 
template<int VecSize>
Eigen::Matrix< CoalScalar, VecSize, 1 > generateRandomVector (CoalScalar min, CoalScalar max)
 
void test_normal_and_nearest_points (const BVHModel< OBBRSS > &o1, const Halfspace &o2)
 
void test_normal_and_nearest_points (const Halfspace &o1, const BVHModel< OBBRSS > &o2)
 
template<typename ShapeType1 , typename ShapeType2 >
void test_normal_and_nearest_points (const ShapeType1 &o1, const ShapeType2 &o2, size_t gjk_max_iterations=GJK_DEFAULT_MAX_ITERATIONS, CoalScalar gjk_tolerance=GJK_DEFAULT_TOLERANCE, size_t epa_max_iterations=EPA_DEFAULT_MAX_ITERATIONS, CoalScalar epa_tolerance=EPA_DEFAULT_TOLERANCE)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   COAL_NORMAL_AND_NEAREST_POINTS
Author
Louis Montaut

Definition at line 37 of file normal_and_nearest_points.cpp.

Typedef Documentation

◆ Vec2d

typedef Eigen::Vector2d Vec2d

Definition at line 50 of file normal_and_nearest_points.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_box_halfspace  )

Definition at line 384 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_box_plane  )

Definition at line 371 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_bvh_halfspace  )

Definition at line 682 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_capsule_capsule  )

Definition at line 569 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_capsule_halfspace  )

Definition at line 397 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_capsule_plane  )

Definition at line 554 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_cone_cylinder  )

Definition at line 454 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_cone_halfspace  )

Definition at line 494 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_cone_plane  )

Definition at line 524 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_cylinder_ellipsoid  )

Definition at line 474 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_cylinder_halfspace  )

Definition at line 509 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_cylinder_plane  )

Definition at line 539 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_ellipsoid_ellipsoid  )

Definition at line 347 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_ellipsoid_halfspace  )

Definition at line 593 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_ellipsoid_plane  )

Definition at line 606 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [16/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_mesh_box  )

Definition at line 313 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [17/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_mesh_ellipsoid  )

Definition at line 324 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [18/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_mesh_halfspace  )

Definition at line 438 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [19/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_mesh_mesh  )

Definition at line 292 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [20/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_sphere_box  )

Definition at line 282 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [21/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_sphere_capsule  )

Definition at line 270 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [22/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_sphere_cylinder  )

Definition at line 581 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [23/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_sphere_halfspace  )

Definition at line 412 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [24/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_sphere_plane  )

Definition at line 425 of file normal_and_nearest_points.cpp.

◆ BOOST_AUTO_TEST_CASE() [25/25]

BOOST_AUTO_TEST_CASE ( test_normal_and_nearest_points_sphere_sphere  )

Definition at line 260 of file normal_and_nearest_points.cpp.

◆ generateRandomNumber()

CoalScalar generateRandomNumber ( CoalScalar  min,
CoalScalar  max 
)

Definition at line 253 of file normal_and_nearest_points.cpp.

◆ generateRandomVector()

template<int VecSize>
Eigen::Matrix<CoalScalar, VecSize, 1> generateRandomVector ( CoalScalar  min,
CoalScalar  max 
)

Definition at line 244 of file normal_and_nearest_points.cpp.

◆ test_normal_and_nearest_points() [1/3]

void test_normal_and_nearest_points ( const BVHModel< OBBRSS > &  o1,
const Halfspace o2 
)

Definition at line 619 of file normal_and_nearest_points.cpp.

◆ test_normal_and_nearest_points() [2/3]

void test_normal_and_nearest_points ( const Halfspace o1,
const BVHModel< OBBRSS > &  o2 
)

Definition at line 677 of file normal_and_nearest_points.cpp.

◆ test_normal_and_nearest_points() [3/3]

template<typename ShapeType1 , typename ShapeType2 >
void test_normal_and_nearest_points ( const ShapeType1 &  o1,
const ShapeType2 &  o2,
size_t  gjk_max_iterations = GJK_DEFAULT_MAX_ITERATIONS,
CoalScalar  gjk_tolerance = GJK_DEFAULT_TOLERANCE,
size_t  epa_max_iterations = EPA_DEFAULT_MAX_ITERATIONS,
CoalScalar  epa_tolerance = EPA_DEFAULT_TOLERANCE 
)

Definition at line 75 of file normal_and_nearest_points.cpp.



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