|
| Syclop (const SpaceInformationPtr &si, DecompositionPtr d, const std::string &plannerName) |
| Constructor. Requires a Decomposition, which Syclop uses to create high-level leads. More...
|
|
|
void | setup () override |
| Perform extra configuration steps, if needed. This call will also issue a call to ompl::base::SpaceInformation::setup() if needed. This must be called before solving. More...
|
|
void | clear () override |
| Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() will ignore all previous work. More...
|
|
base::PlannerStatus | solve (const base::PlannerTerminationCondition &ptc) override |
| Continues solving until a solution is found or a given planner termination condition is met. Returns true if solution was found. More...
|
|
|
void | setLeadComputeFn (const LeadComputeFn &compute) |
| Allows the user to override the lead computation function. More...
|
|
void | addEdgeCostFactor (const EdgeCostFactorFn &factor) |
| Adds an edge cost factor to be used for edge weights between adjacent regions. More...
|
|
void | clearEdgeCostFactors () |
| Clears all edge cost factors, making all edge weights equivalent to 1. More...
|
|
int | getNumFreeVolumeSamples () const |
| Get the number of states to sample when estimating free volume in the Decomposition. More...
|
|
void | setNumFreeVolumeSamples (int numSamples) |
| Set the number of states to sample when estimating free volume in the Decomposition. More...
|
|
double | getProbShortestPathLead () const |
| Get the probability [0,1] that a lead will be computed as a shortest-path instead of a random-DFS. More...
|
|
void | setProbShortestPathLead (double probability) |
| Set the probability [0,1] that a lead will be computed as a shortest-path instead of a random-DFS. More...
|
|
double | getProbAddingToAvailableRegions () const |
| Get the probability [0,1] that the set of available regions will be augmented. More...
|
|
void | setProbAddingToAvailableRegions (double probability) |
| Set the probability [0,1] that the set of available regions will be augmented. More...
|
|
int | getNumRegionExpansions () const |
| Get the number of times a new region will be chosen and promoted for expansion from a given lead. More...
|
|
void | setNumRegionExpansions (int regionExpansions) |
| Set the number of times a new region will be chosen and promoted for expansion from a given lead. More...
|
|
int | getNumTreeExpansions () const |
| Get the number of calls to selectAndExtend() in the low-level tree planner for a given lead and region. More...
|
|
void | setNumTreeExpansions (int treeExpansions) |
| Set the number of calls to selectAndExtend() in the low-level tree planner for a given lead and region. More...
|
|
double | getProbAbandonLeadEarly () const |
| Get the probability [0,1] that a lead will be abandoned early, before a new region is chosen for expansion. More...
|
|
void | setProbAbandonLeadEarly (double probability) |
| The probability that a lead will be abandoned early, before a new region is chosen for expansion. More...
|
|
| Planner (const Planner &)=delete |
|
Planner & | operator= (const Planner &)=delete |
|
| Planner (SpaceInformationPtr si, std::string name) |
| Constructor. More...
|
|
virtual | ~Planner ()=default |
| Destructor.
|
|
template<class T > |
T * | as () |
| Cast this instance to a desired type. More...
|
|
template<class T > |
const T * | as () const |
| Cast this instance to a desired type. More...
|
|
const SpaceInformationPtr & | getSpaceInformation () const |
| Get the space information this planner is using. More...
|
|
const ProblemDefinitionPtr & | getProblemDefinition () const |
| Get the problem definition the planner is trying to solve. More...
|
|
ProblemDefinitionPtr & | getProblemDefinition () |
| Get the problem definition the planner is trying to solve. More...
|
|
const PlannerInputStates & | getPlannerInputStates () const |
| Get the planner input states. More...
|
|
virtual void | setProblemDefinition (const ProblemDefinitionPtr &pdef) |
| Set the problem definition for the planner. The problem needs to be set before calling solve(). Note: If this problem definition replaces a previous one, it may also be necessary to call clear() or clearQuery(). More...
|
|
virtual PlannerStatus | solve (const PlannerTerminationCondition &ptc)=0 |
| Function that can solve the motion planning problem. This function can be called multiple times on the same problem, without calling clear() in between. This allows the planner to continue work for more time on an unsolved problem, for example. If this option is used, it is assumed the problem definition is not changed (unpredictable results otherwise). The only change in the problem definition that is accounted for is the addition of starting or goal states (but not changing previously added start/goal states). If clearQuery() is called, the planner may retain prior datastructures generated from a previous query on a new problem definition. The function terminates if the call to ptc returns true. More...
|
|
PlannerStatus | solve (const PlannerTerminationConditionFn &ptc, double checkInterval) |
| Same as above except the termination condition is only evaluated at a specified interval. More...
|
|
PlannerStatus | solve (double solveTime) |
| Same as above except the termination condition is solely a time limit: the number of seconds the algorithm is allowed to spend planning. More...
|
|
virtual void | clear () |
| Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() will ignore all previous work. More...
|
|
virtual void | clearQuery () |
| Clears internal datastructures of any query-specific information from the previous query. Planner settings are not affected. The planner, if able, should retain all datastructures generated from previous queries that can be used to help solve the next query. Note that clear() should also clear all query-specific information along with all other datastructures in the planner. By default clearQuery() calls clear(). More...
|
|
virtual void | getPlannerData (PlannerData &data) const |
| Get information about the current run of the motion planner. Repeated calls to this function will update data (only additions are made). This is useful to see what changed in the exploration datastructure, between calls to solve(), for example (without calling clear() in between).
More...
|
|
const std::string & | getName () const |
| Get the name of the planner. More...
|
|
void | setName (const std::string &name) |
| Set the name of the planner. More...
|
|
const PlannerSpecs & | getSpecs () const |
| Return the specifications (capabilities of this planner) More...
|
|
virtual void | setup () |
| Perform extra configuration steps, if needed. This call will also issue a call to ompl::base::SpaceInformation::setup() if needed. This must be called before solving. More...
|
|
virtual void | checkValidity () |
| Check to see if the planner is in a working state (setup has been called, a goal was set, the input states seem to be in order). In case of error, this function throws an exception. More...
|
|
bool | isSetup () const |
| Check if setup() was called for this planner. More...
|
|
ParamSet & | params () |
| Get the parameters for this planner. More...
|
|
const ParamSet & | params () const |
| Get the parameters for this planner. More...
|
|
const PlannerProgressProperties & | getPlannerProgressProperties () const |
| Retrieve a planner's planner progress property map. More...
|
|
virtual void | printProperties (std::ostream &out) const |
| Print properties of the motion planner. More...
|
|
virtual void | printSettings (std::ostream &out) const |
| Print information about the motion planner's settings. More...
|
|
|
virtual Motion * | addRoot (const base::State *s)=0 |
| Add State s as a new root in the low-level tree, and return the Motion corresponding to s. More...
|
|
virtual void | selectAndExtend (Region ®ion, std::vector< Motion * > &newMotions)=0 |
| Select a Motion from the given Region, and extend the tree from the Motion. Add any new motions created to newMotions. More...
|
|
const Region & | getRegionFromIndex (const int rid) const |
| Returns a reference to the Region object with the given index. Assumes the index is valid. More...
|
|
template<typename T , typename PlannerType , typename SetterType , typename GetterType > |
void | declareParam (const std::string &name, const PlannerType &planner, const SetterType &setter, const GetterType &getter, const std::string &rangeSuggestion="") |
| This function declares a parameter for this planner instance, and specifies the setter and getter functions. More...
|
|
template<typename T , typename PlannerType , typename SetterType > |
void | declareParam (const std::string &name, const PlannerType &planner, const SetterType &setter, const std::string &rangeSuggestion="") |
| This function declares a parameter for this planner instance, and specifies the setter function. More...
|
|
void | addPlannerProgressProperty (const std::string &progressPropertyName, const PlannerProgressProperty &prop) |
| Add a planner progress property called progressPropertyName with a property querying function prop to this planner's progress property map. More...
|
|
Synergistic Combination of Layers of Planning.
- Short description
- Syclop is a multi-layered planner that guides a low-level sampling-based tree planner through a sequence of sequence of discrete workspace regions from start to goal. Syclop is defined as an abstract base class whose pure virtual methods are defined by the chosen low-level sampling-based tree planner.
- External documentation
- E. Plaku, L.E. Kavraki, and M.Y. Vardi, Motion Planning with Dynamics by a Synergistic Combination of Layers of Planning, in IEEE Transactions on Robotics, 2010. DOI: 10.1109/TRO.2010.2047820
Definition at line 73 of file Syclop.h.
Each edge weight between two adjacent regions in the Decomposition is defined as a product of edge cost factors. By default, given adjacent regions \(r\) and \(s\), Syclop uses the sole edge cost factor.
\[
\frac{1 + \mbox{sel}^2(r,s)}{1 + \mbox{conn}^2(r,s)} \alpha(r) \alpha(s),
\]
where for any region \(t\),
\[
\alpha(t) = \frac{1}{\left(1 + \mbox{cov}(t)\right) \mbox{freeVol}^4(t)},
\]
\(\mbox{sel}(r,s)\) is the number of times \(r\) and \(s\) have been part of a lead or selected for exploration, \(\mbox{conn}(r,s)\) estimates the progress made by the low-level planner in extending the tree from \(r\) to \(s\), \(\mbox{cov}(t)\) estimates the tree coverage of the region \(t\), and \(\mbox{freeVol}(t)\) estimates the free volume of \(t\). Additional edge cost factors can be added with the addEdgeCostFactor() function, and Syclop's list of edge cost factors can be cleared using clearEdgeCostFactors() .
Definition at line 96 of file Syclop.h.