PPL API Reference |
|
---|
Public Member Functions | |
template<typename MPLibrary > | |
const std::vector< typename MPTraits::GroupCfgType > | FullCfgs (MPLibrary *const _lib) const |
Construction | |
GroupPath (GroupRoadmapType *const _r=nullptr) | |
Path Interface | |
GroupRoadmapType * | GetRoadmap () 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< GroupCfg > | FullCfgs (MPLibrary *const _lib) const |
GroupPath & | operator+= (const GroupPath &_p) |
GroupPath | operator+ (const GroupPath &_p) const |
GroupPath & | operator+= (const std::vector< VID > &_vids) |
GroupPath | operator+ (const std::vector< VID > &_vids) const |
GroupPath & | operator= (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 |
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.
GroupPath< MPTraits >::GroupPath | ( | GroupRoadmapType *const | _r = nullptr | ) |
Construct an empty path.
_r | The roadmap used by this path. |
const std::vector< typename MPTraits::GroupCfgType > & GroupPath< MPTraits >::Cfgs |
Get a copy of the Cfgs in the path.
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.
_lib | The planning library to use. |
GroupPath< MPTraits > & GroupPath< MPTraits >::operator+= | ( | const GroupPath< MPTraits > & | _p | ) |
Append another path to the end of this one.
_p | The path to append. |
GroupPath< MPTraits > GroupPath< MPTraits >::operator+ | ( | const GroupPath< MPTraits > & | _p | ) | const |
Add another path to the end of this one and return the result.
_p | The path to add. |
GroupPath< MPTraits > & GroupPath< MPTraits >::operator+= | ( | const std::vector< VID > & | _vids | ) |
Append a new set of VIDs to the end of this path.
_vids | The VIDs to append. |
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.
_vids | The VIDs to add. |