hpp-core
6.0.0
Implement basic classes for canonical path planning for kinematic chains.
|
#include <hpp/core/path-planner.hh>
Public Member Functions | |
virtual | ~PathPlanner () |
virtual const RoadmapPtr_t & | roadmap () const |
Get roadmap. More... | |
ProblemConstPtr_t | problem () const |
Get problem. More... | |
virtual void | startSolve () |
virtual PathVectorPtr_t | solve () |
virtual void | tryConnectInitAndGoals () |
Try to connect initial and goal configurations to existing roadmap. More... | |
virtual void | oneStep ()=0 |
User implementation of one step of resolution. More... | |
virtual PathVectorPtr_t | finishSolve (const PathVectorPtr_t &path) |
Post processing of the resulting path. More... | |
void | interrupt () |
Interrupt path planning. More... | |
void | maxIterations (const unsigned long int &n) |
Set maximal number of iterations. More... | |
unsigned long int | maxIterations () const |
Get maximal number of iterations. More... | |
void | timeOut (const double &timeOut) |
set time out (in seconds) More... | |
double | timeOut () const |
Get time out. More... | |
void | stopWhenProblemIsSolved (bool enable) |
PathVectorPtr_t | computePath () const |
Find a path in the roadmap and transform it in trajectory. More... | |
Protected Member Functions | |
PathPlanner (const ProblemConstPtr_t &problem) | |
PathPlanner (const ProblemConstPtr_t &problem, const RoadmapPtr_t &roadmap) | |
void | init (const PathPlannerWkPtr_t &weak) |
Store weak pointer to itself. More... | |
Path planner
Algorithm that computes a path between an initial configuration and a set of goal configurations.
|
virtual |
|
protected |
Constructor
Create a new roadmap
|
protected |
Constructor
Store a given roadmap.
PathVectorPtr_t hpp::core::PathPlanner::computePath | ( | ) | const |
Find a path in the roadmap and transform it in trajectory.
|
virtual |
Post processing of the resulting path.
Reimplemented in hpp::core::PlanAndOptimize.
|
protected |
Store weak pointer to itself.
void hpp::core::PathPlanner::interrupt | ( | ) |
Interrupt path planning.
|
inline |
Get maximal number of iterations.
void hpp::core::PathPlanner::maxIterations | ( | const unsigned long int & | n | ) |
Set maximal number of iterations.
|
pure virtual |
User implementation of one step of resolution.
Implemented in hpp::core::VisibilityPrmPlanner, hpp::core::PlanAndOptimize, hpp::core::pathPlanner::SearchInRoadmap, hpp::core::pathPlanner::kPrmStar, hpp::core::pathPlanner::BiRrtStar, hpp::core::DiffusingPlanner, and hpp::core::BiRRTPlanner.
ProblemConstPtr_t hpp::core::PathPlanner::problem | ( | ) | const |
Get problem.
|
virtual |
Get roadmap.
|
virtual |
Solve
Call methods
|
virtual |
Initialize the problem resolution
Reimplemented in hpp::core::PlanAndOptimize, hpp::core::pathPlanner::kPrmStar, hpp::core::pathPlanner::BiRrtStar, hpp::core::DiffusingPlanner, and hpp::core::BiRRTPlanner.
void hpp::core::PathPlanner::stopWhenProblemIsSolved | ( | bool | enable | ) |
Make the resolution stop when the problem is solved. If set to false
, the algorithm stops when maxIterations or timeOut are reached and it is a success if the Problem::target is achieved.
|
inline |
Get time out.
void hpp::core::PathPlanner::timeOut | ( | const double & | timeOut | ) |
set time out (in seconds)
|
virtual |
Try to connect initial and goal configurations to existing roadmap.
Reimplemented in hpp::core::pathPlanner::SearchInRoadmap, and hpp::core::pathPlanner::kPrmStar.