KrisLibrary
1.0.0
|
A 1D level set f(x) <= threshold. More...
#include <Tabular.h>
Public Member Functions | |
Tabular1DLevelSet (const std::vector< Real > &f, Real a, Real b, Real threshold=0) | |
A 1D level set f(x) <= threshold. More... | |
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) |
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 bool | IsSampleable () const |
If true, the Sample() function is implemented. | |
virtual void | Sample (Config &x) |
virtual Real | ObstacleDistance (const Config &x) |
virtual Optimization::NonlinearProgram * | Numeric () |
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 Attributes | |
Real | threshold |
Public Attributes inherited from BoxSet | |
Vector | bmin |
Vector | bmax |
Public Attributes inherited from CSet | |
CPredicate | test |
Additional Inherited Members | |
Public Types inherited from CSet | |
typedef bool(* | CPredicate) (const Config &) |
A 1D level set f(x) <= threshold.
Values of f are linearly interpolated on the grid [a,b]. These are interpreted as being located at the grid cell centers, not the vertices.
Tabular1DLevelSet::Tabular1DLevelSet | ( | const std::vector< Real > & | f, |
Real | a, | ||
Real | b, | ||
Real | _threshold = 0 |
||
) |
A 1D level set f(x) <= threshold.
Values of f are linearly interpolated on the grid [a,b]. These are interpreted as being located at the grid cell centers, not the vertices.