ConstrainedStateSpace.h
86 bool checkMotion(const State *s1, const State *s2, std::pair<State *, double> &lastValid) const override;
176 }
202 }
229 }
305 }
The base class for space information. This contains all the information about the space planning is d...
Definition: SpaceInformation.h:142
Check whether geodesicInterpolate(...) returns constraint satisfying states.
Definition: ConstrainedStateSpace.h:184
const ConstraintPtr getConstraint() const
Returns the constraint that defines the underlying manifold.
Definition: ConstrainedStateSpace.h:338
SanityChecks
Flags used in a bit mask for constrained state space sanity checks, constraintSanityChecks().
Definition: ConstrainedStateSpace.h:168
A shared pointer wrapper for ompl::base::SpaceInformation.
A shared pointer wrapper for ompl::base::Constraint.
Wrapper state type. Contains a reference to an underlying state.
Definition: WrapperStateSpace.h:164
ConstrainedMotionValidator(SpaceInformation *si)
Constructor.
Definition: ConstrainedStateSpace.cpp:44
void interpolate(const State *from, const State *to, double t, State *state) const override
Find a state between from and to around time t, where t = 0 is from, and t = 1 is the final state rea...
Definition: ConstrainedStateSpace.cpp:269
ConstrainedStateSpace(const StateSpacePtr &ambientSpace, const ConstraintPtr &constraint)
Construct a constrained space from an ambientSpace and a constraint.
Definition: ConstrainedStateSpace.cpp:101
SpaceInformation * si_
SpaceInformation associated with this space. Required for early collision checking in manifold traver...
Definition: ConstrainedStateSpace.h:348
double distance(const State *state1, const State *state2) const override
Computes distance between two states. This function satisfies the properties of a metric if isMetricS...
Definition: WrapperStateSpace.h:335
virtual void clear()
Clear any allocated memory from the state space.
Definition: ConstrainedStateSpace.cpp:260
double * getValueAddressAtIndex(State *state, unsigned int index) const override
Many states contain a number of double values. This function provides a means to get the memory addre...
Definition: WrapperStateSpace.h:383
double lambda_
Manifold traversal from x to y is stopped if accumulated distance is greater than d(x,...
Definition: ConstrainedStateSpace.h:366
void copy(const Eigen::Ref< const Eigen::VectorXd > &other)
Copy the contents from a vector into this state. Uses the underlying copy operator used by Eigen for ...
Definition: ConstrainedStateSpace.h:211
virtual bool discreteGeodesic(const State *from, const State *to, bool interpolate=false, std::vector< State * > *geodesic=nullptr) const =0
Traverse the manifold from from toward to. Returns true if we reached to, and false if we stopped ear...
double getDelta() const
Get delta, the step size across the manifold.
Definition: ConstrainedStateSpace.h:314
void setDelta(double delta)
Set delta, the step size for traversing the manifold and collision checking. Default defined by ompl:...
Definition: ConstrainedStateSpace.cpp:210
void constrainedSanityChecks(unsigned int flags) const
Do some sanity checks relating to discrete geodesic computation and constraint satisfaction....
Definition: ConstrainedStateSpace.cpp:110
double delta_
Step size when traversing the manifold and collision checking.
Definition: ConstrainedStateSpace.h:360
bool isMetricSpace() const override
Returns false as the implicit constrained configuration space defined by the constraint is not metric...
Definition: ConstrainedStateSpace.h:229
Check whether state samplers return constraint satisfying samples.
Definition: ConstrainedStateSpace.h:172
A StateSpace that has a Constraint imposed upon it. Underlying space functions are passed to the ambi...
Definition: ConstrainedStateSpace.h:163
Check whether discrete geodesics keep lambda_ * delta_ continuity.
Definition: ConstrainedStateSpace.h:180
unsigned int getDimension() const override
Get the dimension of the space (not the dimension of the surrounding ambient space)
Definition: WrapperStateSpace.h:305
bool checkMotion(const State *s1, const State *s2) const override
Return whether we can step from s1 to s2 along the manifold without collision.
Definition: ConstrainedStateSpace.cpp:54
virtual State * geodesicInterpolate(const std::vector< State * > &geodesic, double t) const
Like interpolate(...), but interpolates between intermediate states already supplied in stateList fro...
Definition: ConstrainedStateSpace.cpp:286
A State in a ConstrainedStateSpace, represented as a dense real vector of values. For convenience and...
Definition: ConstrainedStateSpace.h:198
A shared pointer wrapper for ompl::base::StateSpace.
const ConstrainedStateSpace & ss_
Space in which we check motion.
Definition: ConstrainedStateSpace.h:120
State * allocState() const override
Allocate a new state in this space.
Definition: ConstrainedStateSpace.cpp:264
unsigned int getAmbientDimension() const
Returns the dimension of the ambient space.
Definition: ConstrainedStateSpace.h:326
void setLambda(double lambda)
Set lambda, where lambda * distance(x, y) is the maximum length of the geodesic x to y....
Definition: ConstrainedStateSpace.h:305
unsigned int validSegmentCount(const State *s1, const State *s2) const override
Return the valid segment count on the manifold, as valid segment count is determined by delta_ and la...
Definition: ConstrainedStateSpace.h:256
State space wrapper that transparently passes state space operations through to the underlying space....
Definition: WrapperStateSpace.h:160
unsigned int getManifoldDimension() const
Returns the dimension of the manifold.
Definition: ConstrainedStateSpace.h:332
void sanityChecks() const override
Perform both constrained and regular sanity checks.
Definition: ConstrainedStateSpace.cpp:185
Check whether discrete geodesics satisfy the constraint at all points.
Definition: ConstrainedStateSpace.h:176
void setSpaceInformation(SpaceInformation *si)
Sets the space information for this state space. Required for collision checking in manifold traversa...
Definition: ConstrainedStateSpace.cpp:197
StateType(const ConstrainedStateSpace *space)
Constructor. Requires space to setup information about underlying state.
Definition: ConstrainedStateSpace.h:202
const ConstraintPtr constraint_
Constraint function that defines the manifold.
Definition: ConstrainedStateSpace.h:351
Check if the constraint's numerical Jacobian approximates its provided Jacobian.
Definition: ConstrainedStateSpace.h:188