#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"
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) |
#define BOOST_TEST_MODULE COAL_NORMAL_AND_NEAREST_POINTS |
Definition at line 37 of file normal_and_nearest_points.cpp.
typedef Eigen::Vector2d Vec2d |
Definition at line 50 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_box_plane | ) |
Definition at line 371 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_capsule_capsule | ) |
Definition at line 569 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_capsule_plane | ) |
Definition at line 554 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_cone_halfspace | ) |
Definition at line 494 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_cylinder_ellipsoid | ) |
Definition at line 474 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_cylinder_plane | ) |
Definition at line 539 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_ellipsoid_halfspace | ) |
Definition at line 593 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_mesh_box | ) |
Definition at line 313 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_mesh_halfspace | ) |
Definition at line 438 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_sphere_box | ) |
Definition at line 282 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_sphere_cylinder | ) |
Definition at line 581 of file normal_and_nearest_points.cpp.
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 | ( | test_normal_and_nearest_points_sphere_plane | ) |
Definition at line 425 of file normal_and_nearest_points.cpp.
BOOST_AUTO_TEST_CASE | ( | test_normal_and_nearest_points_sphere_sphere | ) |
Definition at line 260 of file normal_and_nearest_points.cpp.
CoalScalar generateRandomNumber | ( | CoalScalar | min, |
CoalScalar | max | ||
) |
Definition at line 253 of file normal_and_nearest_points.cpp.
Eigen::Matrix<CoalScalar, VecSize, 1> generateRandomVector | ( | CoalScalar | min, |
CoalScalar | max | ||
) |
Definition at line 244 of file normal_and_nearest_points.cpp.
Definition at line 619 of file normal_and_nearest_points.cpp.
Definition at line 677 of file normal_and_nearest_points.cpp.
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.