hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
task-target.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_TASK_TARGET_HH
20 # define HPP_CORE_PROBLEM_TARGET_TASK_TARGET_HH
21 
22 # include <hpp/core/fwd.hh>
23 # include <hpp/core/config.hh>
25 
26 namespace hpp {
27  namespace core {
28  namespace problemTarget {
31 
39  class HPP_CORE_DLLAPI TaskTarget : public ProblemTarget {
40  public:
41  static TaskTargetPtr_t create (const ProblemPtr_t& problem);
42 
44  void check (const RoadmapPtr_t& roadmap) const;
45 
47  bool reached (const RoadmapPtr_t& roadmap) const;
48 
49  PathVectorPtr_t computePath(const RoadmapPtr_t& roadmap) const;
50 
52  {
53  constraints_ = c;
54  }
55 
56  protected:
58  TaskTarget (const ProblemPtr_t& problem)
59  : ProblemTarget (problem)
60  {}
61 
62  private:
63  ConstraintSetPtr_t constraints_;
64  }; // class TaskTarget
66  } // namespace problemTarget
67  } // namespace core
68 } // namespace hpp
69 #endif // HPP_CORE_PROBLEM_TARGET_TASK_TARGET_HH
boost::shared_ptr< ConstraintSet > ConstraintSetPtr_t
Definition: fwd.hh:110
boost::shared_ptr< TaskTarget > TaskTargetPtr_t
Definition: fwd.hh:331
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Vec3f c
TaskTarget(const ProblemPtr_t &problem)
Constructor.
Definition: task-target.hh:58
Definition: problem-target.hh:34
Definition: task-target.hh:39
boost::shared_ptr< PathVector > PathVectorPtr_t
Definition: fwd.hh:176
boost::shared_ptr< Roadmap > RoadmapPtr_t
Definition: fwd.hh:181
void constraints(const ConstraintSetPtr_t &c)
Definition: task-target.hh:51
boost::shared_ptr< Problem > ProblemPtr_t
Definition: fwd.hh:179