Public Member Functions | Private Member Functions | Private Attributes
ompl_interface::ConstrainedSampler Class Reference

#include <constrained_sampler.h>

List of all members.

Public Member Functions

 ConstrainedSampler (const ModelBasedPlanningContext *pc, const constraint_samplers::ConstraintSamplerPtr &cs)
 Default constructor.
double getConstrainedSamplingRate () const
virtual void sampleGaussian (ompl::base::State *state, const ompl::base::State *mean, const double stdDev)
 Sample a state using the specified Gaussian.
virtual void sampleUniform (ompl::base::State *state)
 Sample a state (uniformly)
virtual void sampleUniformNear (ompl::base::State *state, const ompl::base::State *near, const double distance)
 Sample a state (uniformly) within a certain distance of another state.

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 ModelBasedPlanningContextplanning_context_
robot_state::JointStateGroupwork_joint_group_state_
robot_state::RobotState work_state_

Detailed Description

This class defines a sampler that tries to find a sample that satisfies the constraints

Definition at line 50 of file constrained_sampler.h.


Constructor & Destructor Documentation

Default constructor.

Parameters:
pgThe planning group
csA pointer to a kinematic constraint sampler

Definition at line 41 of file constrained_sampler.cpp.


Member Function Documentation

Definition at line 50 of file constrained_sampler.cpp.

bool ompl_interface::ConstrainedSampler::sampleC ( ompl::base::State *  state) [private]

Definition at line 58 of file constrained_sampler.cpp.

void ompl_interface::ConstrainedSampler::sampleGaussian ( ompl::base::State *  state,
const ompl::base::State *  mean,
const double  stdDev 
) [virtual]

Sample a state using the specified Gaussian.

Definition at line 96 of file constrained_sampler.cpp.

void ompl_interface::ConstrainedSampler::sampleUniform ( ompl::base::State *  state) [virtual]

Sample a state (uniformly)

Definition at line 75 of file constrained_sampler.cpp.

void ompl_interface::ConstrainedSampler::sampleUniformNear ( ompl::base::State *  state,
const ompl::base::State *  near,
const double  distance 
) [virtual]

Sample a state (uniformly) within a certain distance of another state.

Definition at line 81 of file constrained_sampler.cpp.


Member Data Documentation

Definition at line 80 of file constrained_sampler.h.

Definition at line 79 of file constrained_sampler.h.

Definition at line 76 of file constrained_sampler.h.

ompl::base::StateSamplerPtr ompl_interface::ConstrainedSampler::default_ [private]

Definition at line 75 of file constrained_sampler.h.

Definition at line 81 of file constrained_sampler.h.

Definition at line 74 of file constrained_sampler.h.

Definition at line 78 of file constrained_sampler.h.

Definition at line 77 of file constrained_sampler.h.


The documentation for this class was generated from the following files:


ompl
Author(s): Ioan Sucan
autogenerated on Mon Oct 6 2014 11:12:04