hpp-manipulation  4.9.0
Classes for manipulation planning.
enforce-transition-semantic.hh
Go to the documentation of this file.
1 // Copyright (c) 2018, Joseph Mirabel
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 //
4 // This file is part of hpp-manipulation.
5 // hpp-manipulation is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // hpp-manipulation is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // hpp-manipulation. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef HPP_MANIPULATION_PATHOPTIMIZATION_ENFORCE_TRANSITION_SEMANTIC_HH
18 #define HPP_MANIPULATION_PATHOPTIMIZATION_ENFORCE_TRANSITION_SEMANTIC_HH
19 
20 # include <hpp/core/path-optimizer.hh>
21 
23 
24 namespace hpp {
25  namespace manipulation {
26  namespace pathOptimization {
27  using hpp::core::Path;
32 
33  class HPP_MANIPULATION_DLLAPI EnforceTransitionSemantic : public core::PathOptimizer
34  {
35  public:
37  typedef boost::shared_ptr<EnforceTransitionSemantic> Ptr_t;
38 
39  static Ptr_t create (const core::Problem& problem) {
40  const Problem& p = dynamic_cast <const Problem&> (problem);
41  return Ptr_t (new EnforceTransitionSemantic (p));
42  }
43 
44  virtual PathVectorPtr_t optimize (const PathVectorPtr_t& path);
45 
46  protected:
49  PathOptimizer (problem), problem_ (problem) {}
50 
51  private:
52  const Problem& problem_;
53  };
54 
56  } // namespace pathOptimization
57  } // namespace manipulation
58 } // namespace hpp
59 
60 #endif // HPP_MANIPULATION_PATHOPTIMIZATION_ENFORCE_TRANSITION_SEMANTIC_HH
boost::shared_ptr< Path > PathPtr_t
Definition: enforce-transition-semantic.hh:33
static Ptr_t create(const core::Problem &problem)
Definition: enforce-transition-semantic.hh:39
boost::shared_ptr< SplineGradientBased > Ptr_t
Definition: problem.hh:32
hpp::core::PathVectorPtr_t PathVectorPtr_t
Definition: enforce-transition-semantic.hh:36
virtual PathVectorPtr_t optimize(const PathVectorPtr_t &path)
EnforceTransitionSemantic(const Problem &problem)
Constructor.
Definition: enforce-transition-semantic.hh:48
const Problem & problem() const
boost::shared_ptr< PathVector > PathVectorPtr_t
boost::shared_ptr< EnforceTransitionSemantic > Ptr_t
Definition: enforce-transition-semantic.hh:37