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 | Public Member Functions
GroupPath< MPTraits > Class Template Referencefinal

Public Member Functions

template<typename MPLibrary >
const std::vector< typename MPTraits::GroupCfgTypeFullCfgs (MPLibrary *const _lib) const
 
Construction
 GroupPath (GroupRoadmapType *const _r=nullptr)
 
Path Interface
GroupRoadmapTypeGetRoadmap () const noexcept
 Get the roadmap used by this path.
 
size_t Size () const noexcept
 Get the number of cfgs in the path.
 
bool Empty () const noexcept
 Check if the path is empty.
 
double Length () const
 Get the total edge weight.
 
const std::vector< VID > & VIDs () const noexcept
 Get the VIDs in the path.
 
const std::vector< GroupCfg > & Cfgs () const
 
template<typename MPLibrary >
const std::vector< GroupCfgFullCfgs (MPLibrary *const _lib) const
 
GroupPathoperator+= (const GroupPath &_p)
 
GroupPath operator+ (const GroupPath &_p) const
 
GroupPathoperator+= (const std::vector< VID > &_vids)
 
GroupPath operator+ (const std::vector< VID > &_vids) const
 
GroupPathoperator= (const GroupPath &_p)
 Copy assignment operator.
 
void Clear ()
 Clear all data in the path.
 
void FlushCache ()
 Clear cached data, but leave the VIDs.
 

Public Types

Motion Planning Types
typedef MPTraits::GroupCfgType GroupCfg
 
typedef MPTraits::GroupRoadmapType GroupRoadmapType
 
typedef GroupRoadmapType::VID VID
 
typedef GroupCfg::Formation Formation
 

Detailed Description

template<typename MPTraits>
class GroupPath< MPTraits >

A path of connected configurations from a given roadmap.

The implementation uses a vector of VID's as the primary representation. The corresponding configurations are computed lazily upon request.

Constructor & Destructor Documentation

◆ GroupPath()

template<typename MPTraits >
GroupPath< MPTraits >::GroupPath ( GroupRoadmapType *const  _r = nullptr)

Construct an empty path.

Parameters
_rThe roadmap used by this path.

Member Function Documentation

◆ Cfgs()

template<typename MPTraits >
const std::vector< typename MPTraits::GroupCfgType > & GroupPath< MPTraits >::Cfgs

Get a copy of the Cfgs in the path.

Warning
If the cfgs in the roadmap are later altered (i.e., if the DOF values or labels are edited), this copy will be out-of-date.

◆ FullCfgs()

template<typename MPTraits >
template<typename MPLibrary >
const std::vector< GroupCfg > GroupPath< MPTraits >::FullCfgs ( MPLibrary *const  _lib) const

Get the current full Cfg path with steps spaced one environment resolution apart. This is not cached due to its size and infrequent usage.

Parameters
_libThe planning library to use.
Returns
The full path of configurations, including local-plan intermediates between the roadmap nodes.

◆ operator+=() [1/2]

template<typename MPTraits >
GroupPath< MPTraits > & GroupPath< MPTraits >::operator+= ( const GroupPath< MPTraits > &  _p)

Append another path to the end of this one.

Parameters
_pThe path to append.

◆ operator+() [1/2]

template<typename MPTraits >
GroupPath< MPTraits > GroupPath< MPTraits >::operator+ ( const GroupPath< MPTraits > &  _p) const

Add another path to the end of this one and return the result.

Parameters
_pThe path to add.

◆ operator+=() [2/2]

template<typename MPTraits >
GroupPath< MPTraits > & GroupPath< MPTraits >::operator+= ( const std::vector< VID > &  _vids)

Append a new set of VIDs to the end of this path.

Parameters
_vidsThe VIDs to append.

◆ operator+() [2/2]

template<typename MPTraits >
GroupPath< MPTraits > GroupPath< MPTraits >::operator+ ( const std::vector< VID > &  _vids) const

Add a new set of VIDs to the end of this path and return the result.

Parameters
_vidsThe VIDs to add.

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