Macros | Functions
shape_inflation.cpp File Reference
#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"
Include dependency graph for shape_inflation.cpp:

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)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   COAL_SECURITY_MARGIN

Definition at line 35 of file shape_inflation.cpp.

◆ MATH_SQUARED

#define MATH_SQUARED (   x)    (x * x)

Definition at line 59 of file shape_inflation.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( test_inflate  )

Definition at line 167 of file shape_inflation.cpp.

◆ isApprox() [1/10]

bool isApprox ( const Box s1,
const Box s2,
const CoalScalar  tol 
)

Definition at line 74 of file shape_inflation.cpp.

◆ isApprox() [2/10]

bool isApprox ( const Capsule s1,
const Capsule s2,
const CoalScalar  tol 
)

Definition at line 86 of file shape_inflation.cpp.

◆ isApprox() [3/10]

bool isApprox ( const CoalScalar v1,
const CoalScalar v2,
const CoalScalar  tol 
)

Definition at line 64 of file shape_inflation.cpp.

◆ isApprox() [4/10]

bool isApprox ( const Cone s1,
const Cone s2,
const CoalScalar  tol 
)

Definition at line 96 of file shape_inflation.cpp.

◆ isApprox() [5/10]

bool isApprox ( const Cylinder s1,
const Cylinder s2,
const CoalScalar  tol 
)

Definition at line 91 of file shape_inflation.cpp.

◆ isApprox() [6/10]

bool isApprox ( const Ellipsoid s1,
const Ellipsoid s2,
const CoalScalar  tol 
)

Definition at line 82 of file shape_inflation.cpp.

◆ isApprox() [7/10]

bool isApprox ( const Halfspace s1,
const Halfspace s2,
const CoalScalar  tol 
)

Definition at line 106 of file shape_inflation.cpp.

◆ isApprox() [8/10]

template<typename Shape >
bool isApprox ( const Shape &  s1,
const Shape &  s2,
const CoalScalar  tol 
)

◆ isApprox() [9/10]

bool isApprox ( const Sphere s1,
const Sphere s2,
const CoalScalar  tol 
)

Definition at line 78 of file shape_inflation.cpp.

◆ isApprox() [10/10]

bool isApprox ( const TriangleP s1,
const TriangleP s2,
const CoalScalar  tol 
)

Definition at line 101 of file shape_inflation.cpp.

◆ test()

template<typename Shape >
void test ( const Shape &  original_shape,
const CoalScalar  inflation,
const CoalScalar  tol = 1e-8 
)

Definition at line 111 of file shape_inflation.cpp.

◆ test_no_throw()

template<typename Shape >
void test_no_throw ( const Shape &  shape,
const CoalScalar  inflation 
)

Definition at line 163 of file shape_inflation.cpp.

◆ test_throw()

template<typename Shape >
void test_throw ( const Shape &  shape,
const CoalScalar  inflation 
)

Definition at line 158 of file shape_inflation.cpp.



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