ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::mad::LinearConstraintSet Class Reference

#include <linearconstraintset.h>

Collaboration diagram for adore::mad::LinearConstraintSet:
Collaboration graph

Classes

struct  Line
 

Public Types

enum  Direction { LOWER =-1 , UPPER =1 }
 

Public Member Functions

bool hasConstraints () const
 utility function, returns if the set contain any constraints More...
 
void insert (double x0, double y0, double x1, double y1)
 
void clear ()
 
void bound (function_type_scalar *fun, Direction direction)
 
std::vector< LinegetPossiblyIntersectingSet () const
 

Private Attributes

std::vector< LineI
 

Detailed Description

LinearConstraintSet computes lower and upper bounds for a set of bounded linear functions, with the resulting upper/lower bounds not necessarily convex.

Member Enumeration Documentation

◆ Direction

Enumerator
LOWER 
UPPER 

Member Function Documentation

◆ bound()

void adore::mad::LinearConstraintSet::bound ( function_type_scalar fun,
Direction  direction 
)
inline

compute bound in given direction

Parameters
directionupper or lower bound
funthe result is placed in this function
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void adore::mad::LinearConstraintSet::clear ( )
inline

empty the set of lines

◆ getPossiblyIntersectingSet()

std::vector<Line> adore::mad::LinearConstraintSet::getPossiblyIntersectingSet ( ) const
inline

returns the set of lines

◆ hasConstraints()

bool adore::mad::LinearConstraintSet::hasConstraints ( ) const
inline

utility function, returns if the set contain any constraints

Returns
true
false

◆ insert()

void adore::mad::LinearConstraintSet::insert ( double  x0,
double  y0,
double  x1,
double  y1 
)
inline

insert a line from x0,y0 to x1,y1

Here is the caller graph for this function:

Member Data Documentation

◆ I

std::vector<Line> adore::mad::LinearConstraintSet::I
private

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