Parasol Planning Library (PPL)
Data Structures | Public Member Functions
ClearanceMap< MPTraits > Class Template Reference

#include <ClearanceMap.h>

Inheritance diagram for ClearanceMap< MPTraits >:
Inheritance graph
[legend]
Collaboration diagram for ClearanceMap< MPTraits >:
Collaboration graph
[legend]

Public Types

Local Types
typedef stapl::sequential::directed_preds_graph< stapl::MULTIEDGES, Point3d, vector< Point3d > > GraphType
 Graph type is a directed multiedge graph of points and paths. More...
 
typedef GraphType::vertex_descriptor VD
 
typedef GraphType::edge_descriptor ED
 
typedef GraphType::vertex_iterator vertex_iterator
 
typedef GraphType::adj_edge_iterator adj_edge_iterator
 
typedef MPTraits::CfgType CfgType
 
typedef function< bool(double)> FilterFunction
 
- Public Types inherited from MPBaseObject< MPTraits >
typedef DefaultWeight< CfgWeightType
 
typedef GenericStateGraph< Cfg, WeightTypeRoadmapType
 
typedef GroupCfg< RoadmapTypeGroupCfgType
 
typedef GroupLocalPlan< RoadmapTypeGroupWeightType
 
typedef GroupRoadmap< GroupCfgType, GroupWeightTypeGroupRoadmapType
 

Public Member Functions

map< ED, double > & GetAnnotatedClearanceMap (FilterFunction &&_f)
 
WorkspaceSkeletonGetAnnotatedSkeleton (FilterFunction &&_f)
 
map< ED, double > & GetClearanceMap ()
 Get the clerance map. More...
 
Construction
 ClearanceMap ()=default
 
void Construct (WorkspaceSkeleton *_s)
 
- Public Member Functions inherited from MPBaseObject< MPTraits >
 MPBaseObject (const std::string &_label="", const std::string &_name="", bool _debug=false)
 
 MPBaseObject (XMLNode &_node)
 
virtual ~MPBaseObject ()
 
virtual void Print (std::ostream &_os) const
 
virtual void Initialize ()
 
const std::string & GetName () const
 Get the class name for this object. More...
 
const std::string & GetLabel () const
 Get the unique label for this object. More...
 
std::string GetNameAndLabel () const
 Get the unique string identifier for this object "m_name::m_label". More...
 
void SetLabel (const std::string &)
 Set the unique label for this object. More...
 
void SetMPLibrary (MPLibrary *) noexcept
 Set the owning MPLibrary. More...
 
MPLibraryGetMPLibrary () const noexcept
 Get the owning MPLibrary. More...
 
bool IsRunning () const noexcept
 Check the library's running flag. More...
 
MPProblemGetMPProblem () const noexcept
 Get the library's current MPProblem. More...
 
EnvironmentGetEnvironment () const noexcept
 Get the current environment. More...
 
MPTaskGetTask () const noexcept
 Get the current task. More...
 
GroupTaskGetGroupTask () const noexcept
 Get the current group task. More...
 
MPSolutionTypeGetMPSolution () const noexcept
 
RoadmapTypeGetRoadmap (Robot *const _r=nullptr) const noexcept
 Get the current free-space roadmap. More...
 
GroupRoadmapTypeGetGroupRoadmap (RobotGroup *const _g=nullptr) const noexcept
 Get the current free-space group roadmap. More...
 
RoadmapTypeGetBlockRoadmap (Robot *const _r=nullptr) const noexcept
 Get the current obstacle-space roadmap. More...
 
PathGetPath (Robot *const _r=nullptr) const noexcept
 
GroupPathGetGroupPath (RobotGroup *const _g=nullptr) const noexcept
 Get the current best group path. More...
 
StatClassGetStatClass () const noexcept
 Get the current StatClass. More...
 
LocalObstacleMapGetLocalObstacleMap () const noexcept
 Get the local obstacle map. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MPBaseObject< MPTraits >
void SetName (const std::string &_s)
 
const std::string & GetBaseFilename () const
 
- Protected Attributes inherited from MPBaseObject< MPTraits >
bool m_debug
 Print debug info? More...
 

Detailed Description

template<class MPTraits>
class ClearanceMap< MPTraits >

Clearance map of the workspace skeleton.

To use clearance map, put it before workspace skeleton. Direct() and SetMPlibrary before construct().

Member Typedef Documentation

◆ adj_edge_iterator

template<class MPTraits >
typedef GraphType::adj_edge_iterator ClearanceMap< MPTraits >::adj_edge_iterator

◆ CfgType

template<class MPTraits >
typedef MPTraits::CfgType ClearanceMap< MPTraits >::CfgType

◆ ED

template<class MPTraits >
typedef GraphType::edge_descriptor ClearanceMap< MPTraits >::ED

◆ FilterFunction

template<class MPTraits >
typedef function<bool(double)> ClearanceMap< MPTraits >::FilterFunction

◆ GraphType

template<class MPTraits >
typedef stapl::sequential::directed_preds_graph< stapl::MULTIEDGES, Point3d, vector<Point3d> > ClearanceMap< MPTraits >::GraphType

Graph type is a directed multiedge graph of points and paths.

◆ VD

template<class MPTraits >
typedef GraphType::vertex_descriptor ClearanceMap< MPTraits >::VD

◆ vertex_iterator

template<class MPTraits >
typedef GraphType::vertex_iterator ClearanceMap< MPTraits >::vertex_iterator

Constructor & Destructor Documentation

◆ ClearanceMap()

template<class MPTraits >
ClearanceMap< MPTraits >::ClearanceMap ( )
default

Member Function Documentation

◆ Construct()

template<class MPTraits >
void ClearanceMap< MPTraits >::Construct ( WorkspaceSkeleton _s)

◆ GetAnnotatedClearanceMap()

template<class MPTraits >
map< typename ClearanceMap< MPTraits >::ED, double > & ClearanceMap< MPTraits >::GetAnnotatedClearanceMap ( FilterFunction &&  _f)

Annotate the clearance map in terms of filter function. The graph in skeleton won't be touched.

Parameters
_fFilter functor.
Returns
A reference to the annotated clearance map.

◆ GetAnnotatedSkeleton()

template<class MPTraits >
WorkspaceSkeleton * ClearanceMap< MPTraits >::GetAnnotatedSkeleton ( FilterFunction &&  _f)

Compute the graph in terms of filter funtion then replace the old graph with the annotated one.

Parameters
_fFilter functor.
Returns
A reference to the annotated workspace skeleton.

◆ GetClearanceMap()

template<class MPTraits >
map<ED, double>& ClearanceMap< MPTraits >::GetClearanceMap ( )
inline

Get the clerance map.


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