All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Lightning.h
42 Notes: The user of this class should invoke the loading and saving from file, otherwise experiences
190 void convertPlannerData(const ompl::base::PlannerDataPtr plannerData, ompl::geometric::PathGeometric &path);
206 bool reversePathIfNecessary(ompl::geometric::PathGeometric &path1, ompl::geometric::PathGeometric &path2);
void setRepairPlanner(const base::PlannerPtr &planner)
Set the planner that will be used for repairing invalid paths recalled from experience.
Definition: LightningRetrieveRepair.cpp:82
A shared pointer wrapper for ompl::base::StateSpace.
void setRepairPlanner(const base::PlannerPtr &planner)
Set the planner to use for repairing experience paths inside the LightningRetrieveRepair planner...
Definition: Lightning.h:138
bool saveIfChanged()
Save the experience database to file if there has been a change.
Definition: Lightning.cpp:362
virtual void print(std::ostream &out=std::cout) const
Print information about the current setup.
Definition: Lightning.cpp:384
virtual void setup()
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: Lightning.cpp:74
Encapsulate a termination condition for a motion planner. Planners will call operator() to decide whe...
Definition: PlannerTerminationCondition.h:66
void getAllPlannerDatas(std::vector< ompl::base::PlannerDataPtr > &plannerDatas) const
Get a vector of all the planning data in the database.
Definition: Lightning.cpp:430
void printResultsInfo(std::ostream &out=std::cout) const
Display debug data about potential available solutions.
Definition: Lightning.cpp:372
std::size_t getExperiencesCount() const
Get the total number of paths stored in the database.
Definition: Lightning.cpp:425
ompl::tools::LightningDBPtr experienceDB_
A shared object between all the planners for saving and loading previous experience.
Definition: Lightning.h:215
bool reversePathIfNecessary(ompl::geometric::PathGeometric &path1, ompl::geometric::PathGeometric &path2)
If path1 and path2 have a better start/goal match when reverse, then reverse path2.
Definition: Lightning.cpp:442
ompl::tools::DynamicTimeWarpPtr dtw_
Tool for comparing two paths and scoring them.
Definition: Lightning.h:218
std::function< PlannerPtr(const SpaceInformationPtr &)> PlannerAllocator
Definition of a function that can allocate a planner.
Definition: Planner.h:423
A shared pointer wrapper for ompl::base::Planner.
void convertPlannerData(const ompl::base::PlannerDataPtr plannerData, ompl::geometric::PathGeometric &path)
Convert PlannerData to PathGeometric. Assume ordering of verticies is order of path.
Definition: Lightning.cpp:435
A class to store the exit status of Planner::solve()
Definition: PlannerStatus.h:48
A shared pointer wrapper for ompl::base::SpaceInformation.
ompl::geometric::LightningRetrieveRepair & getLightningRetrieveRepairPlanner() const
Get a pointer to the retrieve repair planner.
Definition: Lightning.h:130
The Lightning Framework's Retrieve-Repair component.
Definition: LightningRetrieveRepair.h:77
Built off of SimpleSetup but provides support for planning from experience.
Definition: Lightning.h:98
virtual void clear()
Clear all planning data. This only includes data generated by motion plan computation. Planner settings, start & goal states are not affected.
Definition: Lightning.cpp:147
bool configured_
Flag indicating whether the classes needed for planning are set up.
Definition: SimpleSetup.h:292
void printLogs(std::ostream &out=std::cout) const
Display debug data about overall results from Lightning since being loaded.
Definition: Lightning.cpp:405
const ompl::tools::DynamicTimeWarpPtr & getDynamicTimeWarp() const
Tool for comparing two paths and scoring them.
Definition: Lightning.h:193
virtual base::PlannerStatus solve(double time=1.0)
Run the planner for up to a specified amount of time (default is 1 second)
Definition: Lightning.cpp:346
ompl::tools::ParallelPlanPtr pp_
Instance of parallel planning to use for computing solutions in parallel.
Definition: Lightning.h:212
void setPlannerAllocator(const base::PlannerAllocator &pa)
Set the planner allocator to use. This is only used if no planner has been set. This is optional – a ...
Definition: Lightning.h:146
A shared pointer wrapper for ompl::base::PlannerData.
Lightning(const base::SpaceInformationPtr &si)
Constructor needs the state space used for planning.
Definition: Lightning.cpp:45
Create the set of classes typically needed to solve a geometric problem.
Definition: ExperienceSetup.h:58