KrisLibrary
1.0.0
|
The space of rotations SO(2). The representation is a single angle. Still need to implement IsFeasible, PathChecker. More...
#include <RigidBodyCSpace.h>
Public Member Functions | |
virtual int | NumDimensions () |
virtual std::string | VariableName (int i) |
virtual void | Sample (Config &x) |
virtual void | SampleNeighborhood (const Config &c, Real r, Config &x) |
virtual void | Interpolate (const Config &a, const Config &b, Real u, Config &out) |
virtual Real | Distance (const Config &a, const Config &b) |
optionally overrideable (default uses euclidean space) | |
virtual void | Properties (PropertyMap &pmap) |
Returns properties of the space that might be useful for planners. More... | |
void | InterpolateDeriv (const Config &a, const Config &b, Real u, Vector &dx) |
void | Integrate (const Config &a, const Vector &da, Config &b) |
Public Member Functions inherited from CSpace | |
void | AddConstraint (const std::string &name, CSet *constraint) |
void | AddConstraint (const std::string &name, const std::shared_ptr< CSet > &constraint) |
void | AddConstraint (const std::string &name, CSet::CPredicate test) |
void | CopyConstraints (const CSpace *space, const std::string &prefix="") |
virtual int | NumConstraints () |
virtual std::string | ConstraintName (int i) |
virtual std::shared_ptr< CSet > | Constraint (int i) |
virtual bool | IsFeasible (const Config &) |
virtual bool | IsFeasible (const Config &, int constraint) |
virtual EdgePlannerPtr | LocalPlanner (const Config &a, const Config &b) |
virtual EdgePlannerPtr | PathChecker (const Config &a, const Config &b) |
virtual EdgePlannerPtr | PathChecker (const Config &a, const Config &b, int constraint) |
virtual void | Midpoint (const Config &x, const Config &y, Config &out) |
virtual bool | ProjectFeasible (Config &x) |
virtual Optimization::NonlinearProgram * | FeasibleNumeric () |
If possible, give the feasible set as a nonlinear program. | |
virtual Real | ObstacleDistance (const Config &a) |
for local planners using obstacle distance | |
virtual void | CheckConstraints (const Config &, std::vector< bool > &satisfied) |
Returns a vector indicating which constraints are satisfied. | |
void | GetFeasibleNames (const Config &q, std::vector< std::string > &names) |
Gets a list of feasible obstacles for the given configuration. | |
void | GetInfeasibleNames (const Config &q, std::vector< std::string > &names) |
Gets a list of infeasible obstacles for the given configuration. | |
void | PrintInfeasibleNames (const Config &q, std::ostream &out=std::cout, const char *prefix="", const char *suffix="\n") |
Prints out the list of infeasible obstacles for the given configuration. | |
Public Member Functions inherited from GeodesicSpace | |
virtual int | NumIntrinsicDimensions () |
virtual void | InterpolateDerivA (const Config &a, const Config &b, Real u, const Vector &da, Vector &dx) |
virtual void | InterpolateDerivB (const Config &a, const Config &b, Real u, const Vector &db, Vector &dx) |
virtual void | InterpolateDeriv2 (const Config &a, const Config &b, Real u, Vector &ddx) |
Static Public Member Functions | |
static void | GetRotation (const Config &x, Math3D::Matrix2 &R) |
static void | SetRotation (const Math3D::Matrix2 &R, Config &x) |
Additional Inherited Members | |
Public Attributes inherited from CSpace | |
std::vector< std::string > | constraintNames |
std::vector< std::shared_ptr< CSet > > | constraints |
The space of rotations SO(2). The representation is a single angle. Still need to implement IsFeasible, PathChecker.
|
virtual |
Returns properties of the space that might be useful for planners.
Typical properties may include
Default implementation returns the properties of a Euclidean space.
Reimplemented from CSpace.
References Math::AngleDiff(), Math::AngleNormalize(), Math::Rand(), Math::SampleSphere(), and Math3D::Matrix2::setRotate().