Go to the documentation of this file.
39 #include <ompl/base/StateSampler.h>
44 class ModelBasedPlanningContext;
47 class ConstrainedSampler :
public ompl::base::StateSampler
54 ConstrainedSampler(
const ModelBasedPlanningContext* pc, constraint_samplers::ConstraintSamplerPtr cs);
60 void sampleUniformNear(ompl::base::State* state,
const ompl::base::State* near,
const double distance)
override;
63 void sampleGaussian(ompl::base::State* state,
const ompl::base::State* mean,
const double stdDev)
override;
68 bool sampleC(ompl::base::State* state);
71 ompl::base::StateSamplerPtr
default_;
The MoveIt interface to OMPL.
ConstrainedSampler(const ModelBasedPlanningContext *pc, constraint_samplers::ConstraintSamplerPtr cs)
Default constructor.
void sampleGaussian(ompl::base::State *state, const ompl::base::State *mean, const double stdDev) override
Sample a state using the specified Gaussian.
bool sampleC(ompl::base::State *state)
void sampleUniform(ompl::base::State *state) override
Sample a state (uniformly)
const ModelBasedPlanningContext * planning_context_
moveit::core::RobotState work_state_
unsigned int constrained_failure_
constraint_samplers::ConstraintSamplerPtr constraint_sampler_
void sampleUniformNear(ompl::base::State *state, const ompl::base::State *near, const double distance) override
Sample a state (uniformly) within a certain distance of another state.
ompl::base::StateSamplerPtr default_
unsigned int constrained_success_
double getConstrainedSamplingRate() const
ompl
Author(s): Ioan Sucan
autogenerated on Tue Dec 24 2024 03:28:09