SyclopEST is Syclop with EST as its low-level tree planner. More...

#include <ompl/control/planners/syclop/SyclopEST.h>

Inheritance diagram for ompl::control::SyclopEST:

Public Member Functions

 SyclopEST (const SpaceInformationPtr &si, const DecompositionPtr &d)
 Constructor. Requires a Decomposition, which Syclop uses to create high-level leads.
 
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.
 
void clear () override
 Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() will ignore all previous work.
 
void getPlannerData (base::PlannerData &data) const override
 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).

 
- Public Member Functions inherited from ompl::control::Syclop
 Syclop (const SpaceInformationPtr &si, DecompositionPtr d, const std::string &plannerName)
 Constructor. Requires a Decomposition, which Syclop uses to create high-level leads.
 
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.
 
void setLeadComputeFn (const LeadComputeFn &compute)
 Allows the user to override the lead computation function.
 
void addEdgeCostFactor (const EdgeCostFactorFn &factor)
 Adds an edge cost factor to be used for edge weights between adjacent regions.
 
void clearEdgeCostFactors ()
 Clears all edge cost factors, making all edge weights equivalent to 1.
 
int getNumFreeVolumeSamples () const
 Get the number of states to sample when estimating free volume in the Decomposition.
 
void setNumFreeVolumeSamples (int numSamples)
 Set the number of states to sample when estimating free volume in the Decomposition.
 
double getProbShortestPathLead () const
 Get the probability [0,1] that a lead will be computed as a shortest-path instead of a random-DFS.
 
void setProbShortestPathLead (double probability)
 Set the probability [0,1] that a lead will be computed as a shortest-path instead of a random-DFS.
 
double getProbAddingToAvailableRegions () const
 Get the probability [0,1] that the set of available regions will be augmented.
 
void setProbAddingToAvailableRegions (double probability)
 Set the probability [0,1] that the set of available regions will be augmented.
 
int getNumRegionExpansions () const
 Get the number of times a new region will be chosen and promoted for expansion from a given lead.
 
void setNumRegionExpansions (int regionExpansions)
 Set the number of times a new region will be chosen and promoted for expansion from a given lead.
 
int getNumTreeExpansions () const
 Get the number of calls to selectAndExtend() in the low-level tree planner for a given lead and region.
 
void setNumTreeExpansions (int treeExpansions)
 Set the number of calls to selectAndExtend() in the low-level tree planner for a given lead and region.
 
double getProbAbandonLeadEarly () const
 Get the probability [0,1] that a lead will be abandoned early, before a new region is chosen for expansion.
 
void setProbAbandonLeadEarly (double probability)
 The probability that a lead will be abandoned early, before a new region is chosen for expansion.
 
- Public Member Functions inherited from ompl::base::Planner
 Planner (const Planner &)=delete
 
Planneroperator= (const Planner &)=delete
 
 Planner (SpaceInformationPtr si, std::string name)
 Constructor.
 
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 SpaceInformationPtrgetSpaceInformation () const
 Get the space information this planner is using.
 
const ProblemDefinitionPtrgetProblemDefinition () const
 Get the problem definition the planner is trying to solve.
 
ProblemDefinitionPtrgetProblemDefinition ()
 Get the problem definition the planner is trying to solve.
 
const PlannerInputStatesgetPlannerInputStates () const
 Get the planner input states.
 
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().
 
PlannerStatus solve (const PlannerTerminationConditionFn &ptc, double checkInterval)
 Same as above except the termination condition is only evaluated at a specified interval.
 
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.
 
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().
 
const std::string & getName () const
 Get the name of the planner.
 
void setName (const std::string &name)
 Set the name of the planner.
 
const PlannerSpecsgetSpecs () const
 Return the specifications (capabilities of this planner)
 
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.
 
bool isSetup () const
 Check if setup() was called for this planner.
 
ParamSetparams ()
 Get the parameters for this planner.
 
const ParamSetparams () const
 Get the parameters for this planner.
 
const PlannerProgressPropertiesgetPlannerProgressProperties () const
 Retrieve a planner's planner progress property map.
 
virtual void printProperties (std::ostream &out) const
 Print properties of the motion planner.
 
virtual void printSettings (std::ostream &out) const
 Print information about the motion planner's settings.
 

Protected Member Functions

Syclop::MotionaddRoot (const base::State *s) override
 Add State s as a new root in the low-level tree, and return the Motion corresponding to s.
 
void selectAndExtend (Region &region, std::vector< Motion * > &newMotions) override
 
void freeMemory ()
 Free the memory allocated by this planner.
 
- Protected Member Functions inherited from ompl::control::Syclop
virtual void selectAndExtend (Region &region, 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.
 
const RegiongetRegionFromIndex (const int rid) const
 Returns a reference to the Region object with the given index. Assumes the index is valid.
 
- Protected Member Functions inherited from ompl::base::Planner
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.
 
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.
 
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.
 

Protected Attributes

base::StateSamplerPtr sampler_
 
ControlSamplerPtr controlSampler_
 
std::vector< Motion * > motions_
 
Motion * lastGoalMotion_
 The most recent goal motion. Used for PlannerData computation.
 
- Protected Attributes inherited from ompl::control::Syclop
int numFreeVolSamples_ {Defaults::NUM_FREEVOL_SAMPLES}
 The number of states to sample to estimate free volume in the Decomposition.
 
double probShortestPath_ {Defaults::PROB_SHORTEST_PATH}
 The probability that a lead will be computed as a shortest-path instead of a random-DFS.
 
double probKeepAddingToAvail_ {Defaults::PROB_KEEP_ADDING_TO_AVAIL}
 The probability that the set of available regions will be augmented.
 
int numRegionExpansions_ {Defaults::NUM_REGION_EXPANSIONS}
 The number of times a new region will be chosen and promoted for expansion from a given lead.
 
int numTreeSelections_ {Defaults::NUM_TREE_SELECTIONS}
 The number of calls to selectAndExtend() in the low-level tree planner for a given lead and region.
 
double probAbandonLeadEarly_ {Defaults::PROB_ABANDON_LEAD_EARLY}
 The probability that a lead will be abandoned early, before a new region is chosen for expansion.
 
const SpaceInformationsiC_
 Handle to the control::SpaceInformation object.
 
DecompositionPtr decomp_
 The high level decomposition used to focus tree expansion.
 
RNG rng_
 Random number generator.
 
- Protected Attributes inherited from ompl::base::Planner
SpaceInformationPtr si_
 The space information for which planning is done.
 
ProblemDefinitionPtr pdef_
 The user set problem definition.
 
PlannerInputStates pis_
 Utility class to extract valid input states

 
std::string name_
 The name of this planner.
 
PlannerSpecs specs_
 The specifications of the planner (its capabilities)
 
ParamSet params_
 A map from parameter names to parameter instances for this planner. This field is populated by the declareParam() function.
 
PlannerProgressProperties plannerProgressProperties_
 A mapping between this planner's progress property names and the functions used for querying those progress properties.
 
bool setup_
 Flag indicating whether setup() has been called.
 

Additional Inherited Members

- Public Types inherited from ompl::control::Syclop
using EdgeCostFactorFn = std::function< double(int, int)>
 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. More...
 
using LeadComputeFn = std::function< void(int, int, std::vector< int > &)>
 Leads should consist of a path of adjacent regions in the decomposition that start with the start region and end at the end region. Default is \(A^\ast\) search.
 
- Public Types inherited from ompl::base::Planner
using PlannerProgressProperty = std::function< std::string()>
 Definition of a function which returns a property about the planner's progress that can be queried by a benchmarking routine.
 
using PlannerProgressProperties = std::map< std::string, PlannerProgressProperty >
 A dictionary which maps the name of a progress property to the function to be used for querying that property.
 

Detailed Description

SyclopEST is Syclop with EST as its low-level tree planner.

Definition at line 115 of file SyclopEST.h.


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