hpp-rbprm  4.10.0
Implementation of RB-PRM planner using hpp.
random-shortcut-dynamic.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 // Authors: Pierre Fernbach
4 //
5 // This file is part of hpp-rbprm
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 
20 #ifndef HPP_RBPRM_RANDOM_SHORTCUT_DYNAMIC_HH
21 #define HPP_RBPRM_RANDOM_SHORTCUT_DYNAMIC_HH
22 
23 #include <hpp/core/path-optimization/random-shortcut.hh>
26 
27 
28 namespace hpp {
29  namespace rbprm {
32 
44 
45 
46 
47  // forward declaration
48  HPP_PREDEF_CLASS (RandomShortcutDynamic);
49  // Planner objects are manipulated only via shared pointers
50  typedef boost::shared_ptr <RandomShortcutDynamic> RandomShortcutDynamicPtr_t;
51 
52 
53  class RandomShortcutDynamic : public core::pathOptimization::RandomShortcut
54  {
55  public:
57  static RandomShortcutDynamicPtr_t create (const core::Problem& problem);
58 
60  virtual core::PathVectorPtr_t optimize (const core::PathVectorPtr_t& path);
61  protected:
62  RandomShortcutDynamic (const core::Problem& problem);
63 
64  core::PathPtr_t steer (core::ConfigurationIn_t q1, core::ConfigurationIn_t q2) const;
65 
66  private:
68  const RbPrmPathValidationPtr_t rbprmPathValidation_;
69  double sizeFootX_,sizeFootY_;
70  bool rectangularContact_;
71  bool tryJump_;
72  double mu_;
73  }; // class RandomShortcut
75  } // namespace core
76 } // namespace hpp
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 #endif // HPP_RBPRM_RANDOM_SHORTCUT_DYNAMIC_HH
hpp::rbprm::RandomShortcutDynamicPtr_t
boost::shared_ptr< RandomShortcutDynamic > RandomShortcutDynamicPtr_t
Definition: random-shortcut-dynamic.hh:50
rbprm-path-validation.hh
hpp::rbprm::HPP_PREDEF_CLASS
HPP_PREDEF_CLASS(RbPrmFullBody)
hpp::rbprm::RandomShortcutDynamic::RandomShortcutDynamic
RandomShortcutDynamic(const core::Problem &problem)
hpp::rbprm::RandomShortcutDynamic
Definition: random-shortcut-dynamic.hh:53
hpp::rbprm::RandomShortcutDynamic::steer
core::PathPtr_t steer(core::ConfigurationIn_t q1, core::ConfigurationIn_t q2) const
hpp::rbprm::RbPrmPathValidationPtr_t
boost::shared_ptr< RbPrmPathValidation > RbPrmPathValidationPtr_t
Definition: rbprm-path-validation.hh:31
hpp::rbprm::SteeringMethodKinodynamicPtr_t
boost::shared_ptr< SteeringMethodKinodynamic > SteeringMethodKinodynamicPtr_t
Definition: rbprm-steering-kinodynamic.hh:33
hpp
Definition: algorithm.hh:27
rbprm-steering-kinodynamic.hh
hpp::rbprm::RandomShortcutDynamic::optimize
virtual core::PathVectorPtr_t optimize(const core::PathVectorPtr_t &path)
Optimize path.
hpp::rbprm::RandomShortcutDynamic::create
static RandomShortcutDynamicPtr_t create(const core::Problem &problem)
Return shared pointer to new object.