|
|
| NeighborhoodFinderMethod (const Type _type=Type::OTHER) |
|
| NeighborhoodFinderMethod (XMLNode &_node, const Type _type=Type::OTHER, const bool _requireDM=true) |
|
virtual | ~NeighborhoodFinderMethod ()=default |
|
|
virtual void | Print (std::ostream &_os) const override |
|
|
Type | GetType () const noexcept |
|
virtual size_t & | GetK () noexcept |
|
virtual double & | GetRadius () noexcept |
|
virtual void | SetDMLabel (const std::string &_label) noexcept |
|
virtual const std::string & | GetDMLabel () const noexcept |
|
|
virtual void | FindNeighbors (RoadmapType *const _r, const CfgType &_cfg, const VertexSet &_candidates, OutputIterator _out)=0 |
|
virtual void | FindNeighbors (GroupRoadmapType *const _r, const GroupCfgType &_cfg, const VertexSet &_candidates, OutputIterator _out)=0 |
|
template<typename AbstractRoadmapType > |
void | FindNeighbors (AbstractRoadmapType *const _r, const typename AbstractRoadmapType::CfgType &_cfg, OutputIterator _out) |
|
|
virtual void | Initialize () |
|
|
const std::string & | GetName () const |
| Get the class name for this object.
|
|
const std::string & | GetLabel () const |
| Get the unique label for this object.
|
|
std::string | GetNameAndLabel () const |
| Get the unique string identifier for this object "m_name::m_label".
|
|
void | SetLabel (const std::string &) |
| Set the unique label for this object.
|
|
|
void | SetMPLibrary (MPLibrary *) noexcept |
| Set the owning MPLibrary.
|
|
MPLibrary * | GetMPLibrary () const noexcept |
| Get the owning MPLibrary.
|
|
bool | IsRunning () const noexcept |
| Check the library's running flag.
|
|
DistanceMetricPointer | GetDistanceMetric (const std::string &) const noexcept |
| Get a distance metric by label from the owning MPLibrary.
|
|
ValidityCheckerPointer | GetValidityChecker (const std::string &) const noexcept |
| Get a validity checker by label from the owning MPLibrary.
|
|
NeighborhoodFinderPointer | GetNeighborhoodFinder (const std::string &) const noexcept |
| Get a neighborhood finder by label from the owning MPLibrary.
|
|
SamplerPointer | GetSampler (const std::string &) const noexcept |
| Get a sampler by label from the owning MPLibrary.
|
|
LocalPlannerPointer | GetLocalPlanner (const std::string &) const noexcept |
| Get a local planner by label from the owning MPLibrary.
|
|
ExtenderPointer | GetExtender (const std::string &) const noexcept |
| Get an extender by label from the owning MPLibrary.
|
|
PathModifierPointer | GetPathModifier (const std::string &) const noexcept |
| Get a path modifier by label from the owning MPLibrary.
|
|
ConnectorPointer | GetConnector (const std::string &) const noexcept |
| Get a connector by label from the owning MPLibrary.
|
|
MetricPointer | GetMetric (const std::string &) const noexcept |
| Get a metric by label from the owning MPLibrary.
|
|
MapEvaluatorPointer | GetMapEvaluator (const std::string &) const noexcept |
| Get a map evaluator by label from the owning MPLibrary.
|
|
MPStrategyPointer | GetMPStrategy (const std::string &) const noexcept |
| Get a strategy by label from the owning MPLibrary.
|
|
MPTraits::MPTools * | GetMPTools () const noexcept |
| Get the MPTools container from the owning MPLibrary.
|
|
|
MPProblem * | GetMPProblem () const noexcept |
| Get the library's current MPProblem.
|
|
Environment * | GetEnvironment () const noexcept |
| Get the current environment.
|
|
MPTask * | GetTask () const noexcept |
| Get the current task.
|
|
GroupTask * | GetGroupTask () const noexcept |
| Get the current group task.
|
|
|
MPSolution * | GetMPSolution () const noexcept |
|
RoadmapType * | GetRoadmap (Robot *const _r=nullptr) const noexcept |
| Get the current free-space roadmap.
|
|
GroupRoadmapType * | GetGroupRoadmap (RobotGroup *const _g=nullptr) const noexcept |
| Get the current free-space group roadmap.
|
|
RoadmapType * | GetBlockRoadmap (Robot *const _r=nullptr) const noexcept |
| Get the current obstacle-space roadmap.
|
|
Path * | GetPath (Robot *const _r=nullptr) const noexcept |
| Get the current best path.
|
|
GroupPath * | GetGroupPath (RobotGroup *const _g=nullptr) const noexcept |
| Get the current best group path.
|
|
StatClass * | GetStatClass () const noexcept |
| Get the current StatClass.
|
|
LocalObstacleMap * | GetLocalObstacleMap () const noexcept |
| Get the local obstacle map.
|
|
GoalTracker * | GetGoalTracker () const noexcept |
| Get the goal tracker.
|
|
|
|
enum class | Type { K
, RADIUS
, APPROX
, OTHER
} |
| The type of neighbors found. More...
|
|
typedef std::back_insert_iterator< std::vector< Neighbor > > | OutputIterator |
| Output iterator for writing discovered neighbors to a container.
|
|
|
typedef MPTraits::RoadmapType | RoadmapType |
|
typedef RoadmapType::VID | VID |
|
typedef RoadmapType::VertexSet | VertexSet |
|
typedef MPTraits::CfgType | CfgType |
|
typedef MPTraits::GroupRoadmapType | GroupRoadmapType |
|
typedef MPTraits::GroupCfgType | GroupCfgType |
|
|
typedef MPTraits::LocalObstacleMap | LocalObstacleMap |
|
typedef MPTraits::Path | Path |
|
typedef MPTraits::GroupPathType | GroupPath |
|
typedef MPTraits::MPLibrary | MPLibrary |
|
typedef MPTraits::MPSolution | MPSolution |
|
typedef MPTraits::GoalTracker | GoalTracker |
|
typedef MPLibrary::SamplerPointer | SamplerPointer |
|
typedef MPLibrary::LocalPlannerPointer | LocalPlannerPointer |
|
typedef MPLibrary::ExtenderPointer | ExtenderPointer |
|
typedef MPLibrary::PathModifierPointer | PathModifierPointer |
|
typedef MPLibrary::ConnectorPointer | ConnectorPointer |
|
typedef MPLibrary::MetricPointer | MetricPointer |
|
typedef MPLibrary::MapEvaluatorPointer | MapEvaluatorPointer |
|
typedef MPLibrary::MPStrategyPointer | MPStrategyPointer |
|
typedef MPLibrary::DistanceMetricPointer | DistanceMetricPointer |
|
typedef MPLibrary::ValidityCheckerPointer | ValidityCheckerPointer |
|
typedef MPLibrary::NeighborhoodFinderPointer | NeighborhoodFinderPointer |
|
template<typename
MPTraits>
class NeighborhoodFinderMethod< MPTraits >
Base algorithm abstraction for NeighborhoodFinders, which are methods that solve nearest-neighbor queries against configurations in a roadmap.
The primary function 'FindNeighbors' takes an input configuration and optionally a set of candidate neighbors. It returns the computed set of "nearest" neighbors and their distances (through the 'Neighbor' structure).
- Usage:\n
CfgType queryCfg;
VertexSet candidates;
std::vector<Neighbor> neighbors;
nf->FindNeighbors(this->
GetRoadmap(), queryCfg, candidates,
std::back_inserter(neighbors));
NeighborhoodFinderPointer GetNeighborhoodFinder(const std::string &) const noexcept
Get a neighborhood finder by label from the owning MPLibrary.
Definition: MPBaseObject.h:354
RoadmapType * GetRoadmap(Robot *const _r=nullptr) const noexcept
Get the current free-space roadmap.
Definition: MPBaseObject.h:491