Loading...
Searching...
No Matches
LightningDB.cpp
122void ompl::tools::LightningDB::addPath(ompl::geometric::PathGeometric &solutionPath, double &insertionTime)
145 // Deep copy the states in the vertices so that when the planner goes out of scope, all data remains intact
209void ompl::tools::LightningDB::getAllPlannerDatas(std::vector<ompl::base::PlannerDataPtr> &plannerDatas) const
219std::vector<ompl::base::PlannerDataPtr> ompl::tools::LightningDB::findNearestStartGoal(int nearestK,
249 si_->distance(a->getVertex(a->numVertices() - 1).getState(), b->getVertex(b->numVertices() - 1).getState()),
Base class for a vertex in the PlannerData structure. All derived classes must implement the clone an...
Definition PlannerData.h:59
Object containing planner generated vertex and edge data. It is assumed that all vertices are unique,...
Definition PlannerData.h:175
std::vector< base::State * > & getStates()
Get the states that make up the path (as a reference, so it can be modified, hence the function is no...
Definition PathGeometric.h:239
std::size_t getStatesCount() const
Get the total number of states stored in the database, across all paths.
Definition LightningDB.cpp:260
void getAllPlannerDatas(std::vector< ompl::base::PlannerDataPtr > &plannerDatas) const
Get a vector of all the paths in the nearest neighbor tree.
Definition LightningDB.cpp:209
LightningDB(const base::StateSpacePtr &space)
Constructor needs the state space used for planning.
Definition LightningDB.cpp:47
ompl::base::PlannerDataStorage plannerDataStorage_
Helper class for storing each plannerData instance.
Definition LightningDB.h:159
void addPath(geometric::PathGeometric &solutionPath, double &insertionTime)
Add a new solution path to our database. Des not actually save to file so experience will be lost if ...
Definition LightningDB.cpp:122
bool saveIfChanged(const std::string &fileName)
Save loaded database to file, except skips saving if no paths have been added.
Definition LightningDB.cpp:154
std::size_t getExperiencesCount() const
Get the total number of paths stored in the database.
Definition LightningDB.cpp:255
std::vector< ompl::base::PlannerDataPtr > findNearestStartGoal(int nearestK, const base::State *start, const base::State *goal)
Find the k nearest paths to our queries one.
Definition LightningDB.cpp:219
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition Time.h:64