#include <boost/test/included/unit_test.hpp>#include <cmath>#include <iostream>#include "coal/distance.h"#include "coal/math/transform.h"#include "coal/collision.h"#include "coal/collision_object.h"#include "coal/shape/geometric_shapes.h"#include "coal/shape/geometric_shapes_utility.h"#include "utility.h"
Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_MODULE COAL_SECURITY_MARGIN |
| #define | MATH_SQUARED(x) (x * x) |
Functions | |
| BOOST_AUTO_TEST_CASE (test_inflate) | |
| bool | isApprox (const Box &s1, const Box &s2, const CoalScalar tol) |
| bool | isApprox (const Capsule &s1, const Capsule &s2, const CoalScalar tol) |
| bool | isApprox (const CoalScalar &v1, const CoalScalar &v2, const CoalScalar tol) |
| bool | isApprox (const Cone &s1, const Cone &s2, const CoalScalar tol) |
| bool | isApprox (const Cylinder &s1, const Cylinder &s2, const CoalScalar tol) |
| bool | isApprox (const Ellipsoid &s1, const Ellipsoid &s2, const CoalScalar tol) |
| bool | isApprox (const Halfspace &s1, const Halfspace &s2, const CoalScalar tol) |
| template<typename Shape > | |
| bool | isApprox (const Shape &s1, const Shape &s2, const CoalScalar tol) |
| bool | isApprox (const Sphere &s1, const Sphere &s2, const CoalScalar tol) |
| bool | isApprox (const TriangleP &s1, const TriangleP &s2, const CoalScalar tol) |
| template<typename Shape > | |
| void | test (const Shape &original_shape, const CoalScalar inflation, const CoalScalar tol=1e-8) |
| template<typename Shape > | |
| void | test_no_throw (const Shape &shape, const CoalScalar inflation) |
| template<typename Shape > | |
| void | test_throw (const Shape &shape, const CoalScalar inflation) |
| #define BOOST_TEST_MODULE COAL_SECURITY_MARGIN |
Definition at line 35 of file shape_inflation.cpp.
Definition at line 59 of file shape_inflation.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_inflate | ) |
Definition at line 167 of file shape_inflation.cpp.
| bool isApprox | ( | const Box & | s1, |
| const Box & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 74 of file shape_inflation.cpp.
| bool isApprox | ( | const Capsule & | s1, |
| const Capsule & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 86 of file shape_inflation.cpp.
| bool isApprox | ( | const CoalScalar & | v1, |
| const CoalScalar & | v2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 64 of file shape_inflation.cpp.
| bool isApprox | ( | const Cone & | s1, |
| const Cone & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 96 of file shape_inflation.cpp.
| bool isApprox | ( | const Cylinder & | s1, |
| const Cylinder & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 91 of file shape_inflation.cpp.
| bool isApprox | ( | const Ellipsoid & | s1, |
| const Ellipsoid & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 82 of file shape_inflation.cpp.
| bool isApprox | ( | const Halfspace & | s1, |
| const Halfspace & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 106 of file shape_inflation.cpp.
| bool isApprox | ( | const Shape & | s1, |
| const Shape & | s2, | ||
| const CoalScalar | tol | ||
| ) |
| bool isApprox | ( | const Sphere & | s1, |
| const Sphere & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 78 of file shape_inflation.cpp.
| bool isApprox | ( | const TriangleP & | s1, |
| const TriangleP & | s2, | ||
| const CoalScalar | tol | ||
| ) |
Definition at line 101 of file shape_inflation.cpp.
| void test | ( | const Shape & | original_shape, |
| const CoalScalar | inflation, | ||
| const CoalScalar | tol = 1e-8 |
||
| ) |
Definition at line 111 of file shape_inflation.cpp.
| void test_no_throw | ( | const Shape & | shape, |
| const CoalScalar | inflation | ||
| ) |
Definition at line 163 of file shape_inflation.cpp.
| void test_throw | ( | const Shape & | shape, |
| const CoalScalar | inflation | ||
| ) |
Definition at line 158 of file shape_inflation.cpp.