OptimizePlan.cpp
43 if (planner && planner->getSpaceInformation().get() != getProblemDefinition()->getSpaceInformation().get())
58 ompl::base::PlannerStatus ompl::tools::OptimizePlan::solve(double solveTime, unsigned int maxSol, unsigned int nthreads)
78 base::PlannerStatus localResult = pp_.solve(std::max(time::seconds(end - time::now()), 0.0), true);
108 geometric::PathGeometric *p = dynamic_cast<geometric::PathGeometric *>(pdef->getSolutionPath().get());
This class contains routines that attempt to simplify geometric paths.
Definition: PathSimplifier.h:129
std::vector< base::PlannerPtr > planners_
The set of planners to be used.
Definition: OptimizePlan.h:186
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:111
bool simplify(PathGeometric &path, double maxTime, bool atLeastOnce=true)
Run simplification algorithms on the path for at most maxTime seconds, and at least once if atLeastOn...
Definition: PathSimplifier.cpp:672
base::PlannerStatus solve(double solveTime, unsigned int maxSol=10, unsigned int nthreads=1)
Try to solve the specified problem within a solveTime seconds, using at most nthreads threads....
Definition: OptimizePlan.cpp:58
A class to store the exit status of Planner::solve()
Definition: PlannerStatus.h:112
std::function< PlannerPtr(const SpaceInformationPtr &)> PlannerAllocator
Definition of a function that can allocate a planner.
Definition: Planner.h:501
const base::ProblemDefinitionPtr & getProblemDefinition() const
Get the problem definition used.
Definition: OptimizePlan.h:165
void addPlanner(const base::PlannerPtr &planner)
Add a planner to use.
Definition: OptimizePlan.cpp:41
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition: Time.h:128
void addPlannerAllocator(const base::PlannerAllocator &pa)
Add a planner allocator to use.
Definition: OptimizePlan.cpp:48