VisiLibity v1 Source Code 1.0
Static Public Member Functions | List of all members
VisiLibity::Shortest_Path_Test Class Reference

Utilities for writing shortest path VisiLibity unit tests. More...

#include <visilibity.hpp>

Inheritance diagram for VisiLibity::Shortest_Path_Test:
VisiLibity::Unit_Test

Static Public Member Functions

static bool validate (const VisiLibity::Environment &environment, const double epsilon, const VisiLibity::Guards &guards)
 
- Static Public Member Functions inherited from VisiLibity::Unit_Test
static void set_output_precision ()
 
static void seed_random ()
 
template<std::size_t N>
static std::vector< Pointmake_point_vector (std::array< double, N > vertices)
 

Detailed Description

Utilities for writing shortest path VisiLibity unit tests.

Author
Will Hawkins

Member Function Documentation

◆ validate()

bool VisiLibity::Shortest_Path_Test::validate ( const VisiLibity::Environment environment,
const double  epsilon,
const VisiLibity::Guards guards 
)
static

Check whether an environment, epsilon, and guards make a valid scenario for testing shortest path calculation.

In order for validate to return true, environment must be valid (see Environment::is_valid), guards must contain exactly two elements and they must be in environment and not colocated.

Author
Will Hawkins
Returns
True or false depending upon whether the scenario meets the requirements described above.

The documentation for this class was generated from the following files: