PPL API Reference
Overview Core Algorithm Abstractions Utilities Parallel Methods
Modules Class Hierarchy Classes Functions
Todo List Bug List Dead Code
List of all members
RegionKit Class Referencefinal

Public Member Functions

Construction
 RegionKit ()=default
 
 RegionKit (XMLNode &_node)
 
 ~RegionKit ()
 
template<typename RoadmapGraph >
void Initialize (WorkspaceSkeleton *const _skeleton, const Point3d &_point, const double _robotRadius, const std::string &_label, RoadmapGraph *_graph)
 
void Clear ()
 Release all regions and clear the internal structures.
 
Sampling
const BoundarySelectRegion ()
 Select a region based on its weight.
 
void IncrementFailure (const Boundary *const _region, const size_t _count=1)
 
void IncrementSuccess (const Boundary *const _region, const size_t _count=1)
 
const Vector3d GetVelocityBias (const Boundary *const _region) const
 
I/O
void Print (std::ostream &_os) const
 

Detailed Description

Creates and manages a set of dynamic sampling regions that follow a workspace skeleton.

Member Function Documentation

◆ Initialize()

template<typename RoadmapGraph >
void RegionKit::Initialize ( WorkspaceSkeleton *const  _skeleton,
const Point3d &  _point,
const double  _robotRadius,
const std::string &  _label,
RoadmapGraph _graph 
)

Initialize a region kit for following a workspace skeleton.

Parameters
_skeletonThe skeleton to follow.
_pointThe workspace starting point.
_robotRadiusThe robot bounding sphere radius.
_labelThe label to use for the roadmap hook.
_graphThe roadmap to hook onto.

◆ IncrementFailure()

void RegionKit::IncrementFailure ( const Boundary *const  _region,
const size_t  _count = 1 
)

Increment the failed sampling attempts of a region.

Parameters
_regionThe region which generated an invalid sample.
_countThe number to increment.

◆ IncrementSuccess()

void RegionKit::IncrementSuccess ( const Boundary *const  _region,
const size_t  _count = 1 
)

Increment the sampling success of a region.

Parameters
_regionThe region which generated a successful sample.
_countThe number to increment.

◆ GetVelocityBias()

const Vector3d RegionKit::GetVelocityBias ( const Boundary *const  _region) const

Get the velocity bias for a given sampling region.

Parameters
_regionThe sampling region.
Returns
The prefered velocity direction for samples within _region.

◆ Print()

void RegionKit::Print ( std::ostream &  _os) const

Print parameters.

Parameters
_osThe out stream to write to.

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