hpp-manipulation  4.9.0
Classes for manipulation planning.
random-shortcut.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_PATH_OPTIMIZATION_RANDOM_SHORTCUT_HH
18 # define HPP_MANIPULATION_PATH_OPTIMIZATION_RANDOM_SHORTCUT_HH
19 
20 #include <hpp/core/path-optimization/random-shortcut.hh>
21 
22 #include <hpp/manipulation/fwd.hh>
23 #include <hpp/manipulation/config.hh>
24 
25 namespace hpp {
26  namespace manipulation {
29  namespace pathOptimization {
30  HPP_PREDEF_CLASS (RandomShortcut);
31  typedef boost::shared_ptr<RandomShortcut> RandomShortcutPtr_t;
32 
33  class HPP_MANIPULATION_DLLAPI RandomShortcut :
35  {
36  public:
38  static RandomShortcutPtr_t create (const core::Problem& problem)
39  {
40  return RandomShortcutPtr_t (new RandomShortcut (problem));
41  }
42 
43  protected:
45  : core::pathOptimization::RandomShortcut (problem)
46  {}
47 
50  virtual bool shootTimes (const core::PathVectorPtr_t& currentOpt,
51  const value_type& t0,
52  value_type& t1,
53  value_type& t2,
54  const value_type& t3);
55  }; // class RandomShortcut
57  } // namespace pathOptimization
58  } // namespace manipulation
59 } // namespace hpp
60 
61 #endif // HPP_MANIPULATION_PATH_OPTIMIZATION_RANDOM_SHORTCUT_HH
static RandomShortcutPtr_t create(const core::Problem &problem)
Return shared pointer to new object.
Definition: random-shortcut.hh:38
core::value_type value_type
Definition: fwd.hh:79
const Problem & problem() const
RandomShortcut(const core::Problem &problem)
Definition: random-shortcut.hh:44
boost::shared_ptr< PathVector > PathVectorPtr_t
boost::shared_ptr< RandomShortcut > RandomShortcutPtr_t
Definition: random-shortcut.hh:31