openrave.org

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
OpenRAVE::planningutils::SimpleNeighborhoodSampler Class Reference

samples the neighborhood of a configuration using the configuration space distance metric and sampler. More...

#include <planningutils.h>

Public Member Functions

 SimpleNeighborhoodSampler (SpaceSamplerBasePtr psampler, const boost::function< dReal(const std::vector< dReal > &, const std::vector< dReal > &)> &distmetricfn)
 
bool Sample (std::vector< dReal > &vNewSample, const std::vector< dReal > &vCurSample, dReal fRadius)
 
bool Sample (std::vector< dReal > &samples)
 

Protected Attributes

SpaceSamplerBasePtr _psampler
 
boost::function< dReal(const
std::vector< dReal > &, const
std::vector< dReal > &)> 
_distmetricfn
 

Detailed Description

samples the neighborhood of a configuration using the configuration space distance metric and sampler.

Examples:
orplanning_door.cpp.

Definition at line 362 of file planningutils.h.

Constructor & Destructor Documentation

OpenRAVE::planningutils::SimpleNeighborhoodSampler::SimpleNeighborhoodSampler ( SpaceSamplerBasePtr  psampler,
const boost::function< dReal(const std::vector< dReal > &, const std::vector< dReal > &)> &  distmetricfn 
)

Definition at line 1716 of file planningutils.cpp.

Member Function Documentation

bool OpenRAVE::planningutils::SimpleNeighborhoodSampler::Sample ( std::vector< dReal > &  vNewSample,
const std::vector< dReal > &  vCurSample,
dReal  fRadius 
)

Definition at line 1720 of file planningutils.cpp.

bool OpenRAVE::planningutils::SimpleNeighborhoodSampler::Sample ( std::vector< dReal > &  samples)

Definition at line 1761 of file planningutils.cpp.

Member Data Documentation

boost::function<dReal(const std::vector<dReal>&, const std::vector<dReal>&)> OpenRAVE::planningutils::SimpleNeighborhoodSampler::_distmetricfn
protected

Definition at line 371 of file planningutils.h.

SpaceSamplerBasePtr OpenRAVE::planningutils::SimpleNeighborhoodSampler::_psampler
protected

Definition at line 370 of file planningutils.h.


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