ConstrainedSpaceInformation.h
82 while (!(valid = si_->isValid(state) && constraint_->isSatisfied(state)) && ++tries < attempts_);
94 while (!(valid = si_->isValid(state) && constraint_->isSatisfied(state)) && ++tries < attempts_);
116 setValidStateSamplerAllocator([](const SpaceInformation *si) -> std::shared_ptr<ValidStateSampler> {
136 bool success = stateSpace_->as<ConstrainedStateSpace>()->discreteGeodesic(s1, s2, true, &states);
158 TangentBundleSpaceInformation(StateSpacePtr space) : ConstrainedSpaceInformation(std::move(space))
216 bool checkMotion(const State *s1, const State *s2, std::pair<State *, double> &lastValid) const override
222 {
unsigned int getMotionStates(const State *s1, const State *s2, std::vector< State * > &states, unsigned int, bool endpoints, bool) const override
Get count states that make up a motion between s1 and s2. Returns the number of states that were adde...
Definition: ConstrainedSpaceInformation.h:197
A state in an atlas represented as a real vector in ambient space and a chart that it belongs to.
Definition: AtlasStateSpace.h:167
bool discreteGeodesic(const State *from, const State *to, bool interpolate=false, std::vector< State * > *geodesic=nullptr) const override
Traverse the manifold from from toward to. Returns true if we reached to, and false if we stopped ear...
Definition: TangentBundleStateSpace.cpp:72
A shared pointer wrapper for ompl::base::Constraint.
ConstrainedSpaceInformation(StateSpacePtr space)
Constructor. Sets the instance of the state space to plan with.
Definition: ConstrainedSpaceInformation.h:177
StateSpacePtr stateSpace_
The state space planning is to be performed in.
Definition: SpaceInformation.h:501
const SpaceInformation * si_
The state space this sampler samples.
Definition: ValidStateSampler.h:185
ConstrainedValidStateSampler(const SpaceInformation *si)
Constructor. Create a valid state sampler for a constrained state space.
Definition: ConstrainedSpaceInformation.h:163
bool sample(State *state) override
Sample a state. Return false in case of failure.
Definition: ConstrainedSpaceInformation.h:170
TangentBundleSpaceInformation(StateSpacePtr space)
Constructor. Sets the instance of the state space to plan with.
Definition: ConstrainedSpaceInformation.h:222
bool sampleNear(State *state, const State *near, double distance) override
Sample a state near another, within specified distance. Return false, in case of failure.
Definition: ConstrainedSpaceInformation.h:183
unsigned int getMotionStates(const State *s1, const State *s2, std::vector< State * > &states, unsigned int, bool, bool) const override
Get count states that make up a motion between s1 and s2. Returns the number of states that were adde...
Definition: ConstrainedSpaceInformation.h:241
void setValidStateSamplerAllocator(const ValidStateSamplerAllocator &vssa)
Set the allocator to use for a valid state sampler. This replaces the default uniform valid state sam...
Definition: SpaceInformation.cpp:121
A shared pointer wrapper for ompl::base::StateSpace.
bool checkMotion(const State *s1, const State *s2, std::pair< State *, double > &lastValid) const override
Incrementally check if the path between two motions is valid. Also compute the last state that was va...
Definition: ConstrainedSpaceInformation.h:280
A shared pointer wrapper for ompl::base::StateSampler.
ConstrainedStateSpace encapsulating a planner-agnostic lazy atlas algorithm for planning on a constra...
Definition: TangentBundleStateSpace.h:144
MotionValidatorPtr motionValidator_
The instance of the motion validator to use when determining the validity of motions in the planning ...
Definition: SpaceInformation.h:509
bool isValid(const State *state) const
Check if a given state is valid or not.
Definition: SpaceInformation.h:158