1 #ifndef PLANNING_CSET_H 2 #define PLANNING_CSET_H 4 #include <KrisLibrary/math/vector.h> 23 #if __cplusplus > 199711L || _MSC_VER >= 1900 24 typedef std::function<bool(const Config&)> CPredicate;
25 typedef bool (*PREDICATE_FUNCTION_PTR) (
const Config&);
27 typedef bool (*CPredicate) (
const Config&);
32 #if __cplusplus > 199711L || _MSC_VER >= 1900 33 CSet(PREDICATE_FUNCTION_PTR f);
39 virtual bool Contains(
const Config& x);
55 virtual bool IsConvex()
const {
return false; }
Namespace for classes and functions in the Optimization package.
Definition: CSet.h:7
virtual int NumDimensions() const
Returns the number of dimensions this accepts (-1) for all dimensions.
Definition: CSet.h:37
Vector Config
an alias for Vector
Definition: RobotKinematics3D.h:14
virtual bool IsSampleable() const
If true, the Sample() function is implemented.
Definition: CSet.h:45
virtual bool IsConvex() const
If true, the feasible set is convex with respect to the CSpace's interpolation function.
Definition: CSet.h:55
virtual Real ObstacleDistance(const Config &x)
Definition: CSet.h:59
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12
virtual Optimization::NonlinearProgram * Numeric()
Definition: CSet.h:52
virtual bool Project(Config &x)
Definition: CSet.h:42
A structure defining a nonlinear program.
Definition: NonlinearProgram.h:22
virtual void Sample(Config &x)
If IsSampleable is true, draws a config at random from the set.
Definition: CSet.h:48
A subset of a CSpace, which establishes a constraint for a configuration must meet. Mathematically, this is a set S which imposes the constraint [q in S].
Definition: CSet.h:20