#include <constrained_sampler.h>
Public Member Functions | |
ConstrainedSampler (const ModelBasedPlanningContext *pc, constraint_samplers::ConstraintSamplerPtr cs) | |
Default constructor. More... | |
double | getConstrainedSamplingRate () const |
void | sampleGaussian (ompl::base::State *state, const ompl::base::State *mean, const double stdDev) override |
Sample a state using the specified Gaussian. More... | |
void | sampleUniform (ompl::base::State *state) override |
Sample a state (uniformly) More... | |
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. More... | |
Private Member Functions | |
bool | sampleC (ompl::base::State *state) |
Private Attributes | |
unsigned int | constrained_failure_ |
unsigned int | constrained_success_ |
constraint_samplers::ConstraintSamplerPtr | constraint_sampler_ |
ompl::base::StateSamplerPtr | default_ |
double | inv_dim_ |
const ModelBasedPlanningContext * | planning_context_ |
moveit::core::RobotState | work_state_ |
This class defines a sampler that tries to find a sample that satisfies the constraints
Definition at line 79 of file constrained_sampler.h.
ompl_interface::ConstrainedSampler::ConstrainedSampler | ( | const ModelBasedPlanningContext * | pc, |
constraint_samplers::ConstraintSamplerPtr | cs | ||
) |
Default constructor.
pg | The planning group |
cs | A pointer to a kinematic constraint sampler |
Definition at line 43 of file constrained_sampler.cpp.
double ompl_interface::ConstrainedSampler::getConstrainedSamplingRate | ( | ) | const |
Definition at line 56 of file constrained_sampler.cpp.
|
private |
Definition at line 64 of file constrained_sampler.cpp.
|
override |
Sample a state using the specified Gaussian.
Definition at line 104 of file constrained_sampler.cpp.
|
override |
Sample a state (uniformly)
Definition at line 82 of file constrained_sampler.cpp.
|
override |
Sample a state (uniformly) within a certain distance of another state.
Definition at line 88 of file constrained_sampler.cpp.
|
private |
Definition at line 107 of file constrained_sampler.h.
|
private |
Definition at line 106 of file constrained_sampler.h.
|
private |
Definition at line 104 of file constrained_sampler.h.
|
private |
Definition at line 103 of file constrained_sampler.h.
|
private |
Definition at line 108 of file constrained_sampler.h.
|
private |
Definition at line 102 of file constrained_sampler.h.
|
private |
Definition at line 105 of file constrained_sampler.h.