hpp-core
4.9.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... | |
const Problem & | problem () const |
Get problem. More... | |
virtual void | startSolve () |
virtual PathVectorPtr_t | solve () |
virtual void | tryDirectPath () HPP_CORE_DEPRECATED |
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... | |
void | timeOut (const double &timeOut) |
set time out (in seconds) More... | |
PathVectorPtr_t | computePath () const |
Find a path in the roadmap and transform it in trajectory. More... | |
Protected Member Functions | |
PathPlanner (const Problem &problem) | |
PathPlanner (const Problem &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.
|
inlinevirtual |
|
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.
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::pathPlanner::kPrmStar, hpp::core::BiRRTPlanner, hpp::core::PlanAndOptimize, hpp::core::VisibilityPrmPlanner, and hpp::core::DiffusingPlanner.
const Problem& hpp::core::PathPlanner::problem | ( | ) | const |
Get problem.
|
virtual |
Get roadmap.
|
virtual |
Solve
Call methods
|
virtual |
Initialize the problem resolution
Reimplemented in hpp::core::pathPlanner::kPrmStar, hpp::core::BiRRTPlanner, and hpp::core::PlanAndOptimize.
void hpp::core::PathPlanner::timeOut | ( | const double & | timeOut | ) |
set time out (in seconds)
|
virtual |
Try to connect initial and goal configurations to existing roadmap.
|
virtual |
Try to make direct connection between init and goal configurations, in order to avoid a random shoot.