hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
goal-configurations.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016 CNRS
3 // Authors: Joseph Mirabel
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_PROBLEM_TARGET_GOAL_CONFIGURATIONS_HH
20 # define HPP_CORE_PROBLEM_TARGET_GOAL_CONFIGURATIONS_HH
21 
23 
24 # include <hpp/core/fwd.hh>
25 # include <hpp/core/config.hh>
26 
27 namespace hpp {
28  namespace core {
29  namespace problemTarget {
32 
36  class HPP_CORE_DLLAPI GoalConfigurations : public ProblemTarget {
37  public:
39  (const ProblemPtr_t& problem);
40 
42  void check (const RoadmapPtr_t& roadmap) const;
43 
46  bool reached (const RoadmapPtr_t& roadmap) const;
47 
48  PathVectorPtr_t computePath(const RoadmapPtr_t& roadmap) const;
49 
50  protected:
53  : ProblemTarget (problem)
54  {}
55  }; // class GoalConfigurations
57  } // namespace problemTarget
58  } // namespace core
59 } // namespace hpp
60 #endif // HPP_CORE_PROBLEM_TARGET_GOAL_CONFIGURATIONS_HH
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Definition: goal-configurations.hh:36
Definition: problem-target.hh:34
boost::shared_ptr< GoalConfigurations > GoalConfigurationsPtr_t
Definition: fwd.hh:330
boost::shared_ptr< PathVector > PathVectorPtr_t
Definition: fwd.hh:176
boost::shared_ptr< Roadmap > RoadmapPtr_t
Definition: fwd.hh:181
boost::shared_ptr< Problem > ProblemPtr_t
Definition: fwd.hh:179
GoalConfigurations(const ProblemPtr_t &problem)
Constructor.
Definition: goal-configurations.hh:52