moveit2
The MoveIt Motion Planning Framework for ROS 2.
Public Member Functions | List of all members
ompl_interface::ConstrainedSampler Class Reference

#include <constrained_sampler.h>

Inheritance diagram for ompl_interface::ConstrainedSampler:
Inheritance graph
[legend]
Collaboration diagram for ompl_interface::ConstrainedSampler:
Collaboration graph
[legend]

Public Member Functions

 ConstrainedSampler (const ModelBasedPlanningContext *pc, constraint_samplers::ConstraintSamplerPtr cs)
 Default constructor. 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...
 
void sampleGaussian (ompl::base::State *state, const ompl::base::State *mean, const double stdDev) override
 Sample a state using the specified Gaussian. More...
 
double getConstrainedSamplingRate () const
 

Detailed Description

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

Definition at line 48 of file constrained_sampler.h.

Constructor & Destructor Documentation

◆ ConstrainedSampler()

ompl_interface::ConstrainedSampler::ConstrainedSampler ( const ModelBasedPlanningContext pc,
constraint_samplers::ConstraintSamplerPtr  cs 
)

Default constructor.

Parameters
pgThe planning group
csA pointer to a kinematic constraint sampler

Definition at line 42 of file constrained_sampler.cpp.

Member Function Documentation

◆ getConstrainedSamplingRate()

double ompl_interface::ConstrainedSampler::getConstrainedSamplingRate ( ) const

Definition at line 55 of file constrained_sampler.cpp.

◆ sampleGaussian()

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

Sample a state using the specified Gaussian.

Definition at line 101 of file constrained_sampler.cpp.

Here is the call graph for this function:

◆ sampleUniform()

void ompl_interface::ConstrainedSampler::sampleUniform ( ompl::base::State *  state)
override

Sample a state (uniformly)

Definition at line 79 of file constrained_sampler.cpp.

◆ sampleUniformNear()

void ompl_interface::ConstrainedSampler::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.

Definition at line 85 of file constrained_sampler.cpp.

Here is the call graph for this function:

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