KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Tabular1DSet Class Reference

A 1D set that includes some marked regions on a grid. More...

#include <Tabular.h>

Inheritance diagram for Tabular1DSet:
BoxSet Table1D< bool > CSet

Public Member Functions

 Tabular1DSet (const std::vector< bool > &valid, Real a, Real b)
 
 Tabular1DSet (int n, Real a, Real b)
 
virtual int NumDimensions () const
 Returns the number of dimensions this accepts (-1) for all dimensions.
 
virtual bool Contains (const Config &x)
 
virtual bool Project (Config &x)
 
virtual bool IsSampleable () const
 If true, the Sample() function is implemented.
 
virtual void Sample (Config &x)
 
- Public Member Functions inherited from BoxSet
 BoxSet (Real xmin, Real xmax, int d=1)
 
 BoxSet (const Vector &bmin, const Vector &bmax)
 
virtual bool IsConvex () const
 If true, the feasible set is convex with respect to the CSpace's interpolation function.
 
virtual Real ObstacleDistance (const Config &x)
 
virtual Optimization::NonlinearProgramNumeric ()
 
- Public Member Functions inherited from CSet
 CSet (CPredicate f)
 
virtual bool Contains (const Config &x)
 Returns true if this constraint is satisfied at configuration x.
 
virtual bool Project (Config &x)
 
virtual void Sample (Config &x)
 If IsSampleable is true, draws a config at random from the set.
 
virtual Real ObstacleDistance (const Config &x)
 
- Public Member Functions inherited from Table1D< bool >
 Table1D (int n, Real a, Real b, int dim=0)
 
 Table1D (const std::vector< bool > &values, Real a, Real b, int dim=0)
 
bool Lookup (Real x) const
 
bool Lookup (const Config &x) const
 
int Index (Real x, Real *u=NULL) const
 
int Index (const Config &x, Real *u=NULL) const
 
std::pair< Real, Real > Cell (int index) const
 

Public Attributes

bool calculatedValidIndices
 
std::vector< int > validIndices
 
- Public Attributes inherited from BoxSet
Vector bmin
 
Vector bmax
 
- Public Attributes inherited from CSet
CPredicate test
 
- Public Attributes inherited from Table1D< bool >
std::vector< bool > values
 
Real a
 
Real b
 
int dim
 

Additional Inherited Members

- Public Types inherited from CSet
typedef bool(* CPredicate) (const Config &)
 

Detailed Description

A 1D set that includes some marked regions on a grid.


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