hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
diffusing-planner.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 CNRS
3 // Authors: Florent Lamiraux
4 //
5 // This file is part of hpp-core
6 // hpp-core is free software: you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation, either version
9 // 3 of the License, or (at your option) any later version.
10 //
11 // hpp-core is distributed in the hope that it will be
12 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Lesser Public License for more details. You should have
15 // received a copy of the GNU Lesser General Public License along with
16 // hpp-core If not, see
17 // <http://www.gnu.org/licenses/>.
18 
19 #ifndef HPP_CORE_DIFFUSING_PLANNER_HH
20 # define HPP_CORE_DIFFUSING_PLANNER_HH
21 
22 # include <hpp/core/path-planner.hh>
23 
24 namespace hpp {
25  namespace core {
28 
30  class HPP_CORE_DLLAPI DiffusingPlanner : public PathPlanner
31  {
32  public:
34  static DiffusingPlannerPtr_t createWithRoadmap
35  (const Problem& problem, const RoadmapPtr_t& roadmap);
37  static DiffusingPlannerPtr_t create (const Problem& problem);
39  virtual void oneStep ();
41  void configurationShooter (const ConfigurationShooterPtr_t& shooter);
42  protected:
44  DiffusingPlanner (const Problem& problem, const RoadmapPtr_t& roadmap);
46  DiffusingPlanner (const Problem& problem);
48  void init (const DiffusingPlannerWkPtr_t& weak);
52  virtual PathPtr_t extend (const NodePtr_t& near,
53  const Configuration_t& target);
54  private:
55  ConfigurationShooterPtr_t configurationShooter_;
56  mutable Configuration_t qProj_;
57  DiffusingPlannerWkPtr_t weakPtr_;
58  };
60  } // namespace core
61 } // namespace hpp
62 #endif // HPP_CORE_DIFFUSING_PLANNER_HH
boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
Definition: problem.hh:48
Generic implementation of RRT algorithm.
Definition: diffusing-planner.hh:30
boost::shared_ptr< ConfigurationShooter > ConfigurationShooterPtr_t
Definition: fwd.hh:103
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Definition: path-planner.hh:34
Definition: node.hh:34
boost::shared_ptr< Roadmap > RoadmapPtr_t
Definition: fwd.hh:181
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
boost::shared_ptr< DiffusingPlanner > DiffusingPlannerPtr_t
Definition: fwd.hh:121