hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
bi-rrt-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_BIRRT_PLANNER_HH
20 # define HPP_CORE_BIRRT_PLANNER_HH
21 
22 # include <hpp/core/path-planner.hh>
23 
24 namespace hpp {
25  namespace core {
28 
32  class HPP_CORE_DLLAPI BiRRTPlanner : public PathPlanner
33  {
34  public:
36  static BiRRTPlannerPtr_t createWithRoadmap
37  (const Problem& problem, const RoadmapPtr_t& roadmap);
39  static BiRRTPlannerPtr_t create (const Problem& problem);
41  virtual void startSolve();
43  virtual void oneStep ();
44  protected:
46  BiRRTPlanner (const Problem& problem, const RoadmapPtr_t& roadmap);
48  BiRRTPlanner (const Problem& problem);
50  void init (const BiRRTPlannerWkPtr_t& weak);
51  PathPtr_t extendInternal (const SteeringMethodPtr_t& sm, Configuration_t& qProj_, const NodePtr_t& near,
52  const Configuration_t& target, bool reverse=false);
53 
56  std::vector<ConnectedComponentPtr_t> endComponents_;
57  private:
58  mutable Configuration_t qProj_;
59  BiRRTPlannerWkPtr_t weakPtr_;
60  };
62  } // namespace core
63 } // namespace hpp
64 #endif // HPP_CORE_BIRRT_PLANNER_HH
ConnectedComponentPtr_t startComponent_
Definition: bi-rrt-planner.hh:55
boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
Definition: problem.hh:48
boost::shared_ptr< ConfigurationShooter > ConfigurationShooterPtr_t
Definition: fwd.hh:103
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Definition: path-planner.hh:34
boost::shared_ptr< ConnectedComponent > ConnectedComponentPtr_t
Definition: fwd.hh:107
Definition: bi-rrt-planner.hh:32
Definition: node.hh:34
std::vector< ConnectedComponentPtr_t > endComponents_
Definition: bi-rrt-planner.hh:56
boost::shared_ptr< Roadmap > RoadmapPtr_t
Definition: fwd.hh:181
boost::shared_ptr< SteeringMethod > SteeringMethodPtr_t
Definition: fwd.hh:194
boost::shared_ptr< BiRRTPlanner > BiRRTPlannerPtr_t
Definition: fwd.hh:81
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
ConfigurationShooterPtr_t configurationShooter_
Definition: bi-rrt-planner.hh:54