All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CForest.h
94 base::CForestStateSpaceWrapper *cfspace = new base::CForestStateSpaceWrapper(this, si_->getStateSpace().get());
175 void newSolutionFound(const base::Planner *planner, const std::vector<const base::State *> &states, const base::Cost cost);
Object containing planner generated vertex and edge data. It is assumed that all vertices are unique...
Definition: PlannerData.h:163
std::unordered_set< const base::State * > statesShared_
Stores the states already shared to check if a specific state has been shared.
Definition: CForest.h:192
A shared pointer wrapper for ompl::base::StateSpace.
A shared pointer wrapper for ompl::base::StateSampler.
unsigned int numThreads_
Default number of threads to use when no planner instances are specified by the user.
Definition: CForest.h:213
std::vector< base::StateSamplerPtr > samplers_
The set of sampler allocated by the planners.
Definition: CForest.h:189
virtual void setup()
Perform extra configuration steps, if needed. This call will also issue a call to ompl::base::SpaceIn...
Definition: CForest.cpp:141
void addPlannerInstances(std::size_t num=2)
Add specific planner instances. CFOREST sets the planner's parameter named focus_search (if present) ...
Definition: CForest.h:108
State space wrapper to use together with CForest. It adds some functionalities to the regular state s...
Definition: CForestStateSpaceWrapper.h:55
Encapsulate a termination condition for a motion planner. Planners will call operator() to decide whe...
Definition: PlannerTerminationCondition.h:66
std::string getNumStatesShared() const
Get number of states actually shared by the algorithm.
Definition: CForest.cpp:211
base::OptimizationObjectivePtr opt_
Optimization objective taken into account when planning.
Definition: CForest.h:183
void setNumThreads(unsigned int numThreads=0)
Set default number of threads to use when no planner instances are specified by the user...
Definition: CForest.cpp:67
virtual void clear()
Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() wil...
Definition: CForest.cpp:123
A shared pointer wrapper for ompl::base::Planner.
virtual void getPlannerData(base::PlannerData &data) const
Get information about the current run of the motion planner. Repeated calls to this function will upd...
Definition: CForest.cpp:88
std::string getNumPathsShared() const
Get number of paths shared by the algorithm.
Definition: CForest.cpp:206
virtual base::PlannerStatus solve(const base::PlannerTerminationCondition &ptc)
Function that can solve the motion planning problem. This function can be called multiple times on th...
Definition: CForest.cpp:168
A class to store the exit status of Planner::solve()
Definition: PlannerStatus.h:48
A shared pointer wrapper for ompl::base::SpaceInformation.
The base class for space information. This contains all the information about the space planning is d...
Definition: SpaceInformation.h:83
void setFocusSearch(const bool focus)
Option to control whether the search is focused during the search.
Definition: CForest.h:140
A shared pointer wrapper for ompl::base::OptimizationObjective.
std::mutex newSolutionFoundMutex_
Mutex to control the access to the newSolutionFound() method.
Definition: CForest.h:204
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:47
unsigned int getNumThreads()
Get default number of threads used by CForest when no planner instances are specified by the user...
Definition: CForest.h:155
base::PlannerPtr & getPlannerInstance(const std::size_t idx)
Return an specific planner instance.
Definition: CForest.h:123