hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
progressive.hh
Go to the documentation of this file.
1 // Copyright (c) 2014, LAAS-CNRS
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 //
4 // This file is part of hpp-core.
5 // hpp-core 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-core 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-core. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef HPP_CORE_PATHPROJECTOR_PROGRESSIVE_HH
18 # define HPP_CORE_PATHPROJECTOR_PROGRESSIVE_HH
19 
21 
22 namespace hpp {
23  namespace core {
24  namespace pathProjector {
25  class HPP_CORE_DLLAPI Progressive : public PathProjector
26  {
27  public:
30 
33  const SteeringMethodPtr_t& steeringMethod, value_type step);
34 
35  static ProgressivePtr_t create (const Problem& problem,
36  const value_type& step);
37 
38  protected:
39  bool impl_apply (const PathPtr_t& path,
40  PathPtr_t& projection) const;
41 
43  const SteeringMethodPtr_t& steeringMethod,
44  value_type step, value_type threshold, value_type hessianBound);
45 
46  bool project (const PathPtr_t& path, PathPtr_t& proj) const;
47 
48  private:
49  value_type step_;
50  const value_type thresholdMin_;
51  const value_type hessianBound_;
52  const bool withHessianBound_;
53  };
54  } // namespace pathProjector
55  } // namespace core
56 } // namespace hpp
57 
58 #endif // HPP_CORE_PATHPROJECTOR_PROGRESSIVE_HH
hpp::core::PathPtr_t PathPtr_t
Definition: path-projector.hh:30
Definition: problem.hh:48
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
This class projects a path using constraints.
Definition: path-projector.hh:26
hpp::core::StraightPath StraightPath
Definition: progressive.hh:28
boost::shared_ptr< StraightPath > StraightPathPtr_t
Definition: fwd.hh:182
hpp::core::StraightPathPtr_t StraightPathPtr_t
Definition: progressive.hh:29
pinocchio::value_type value_type
Definition: fwd.hh:157
Definition: straight-path.hh:42
boost::shared_ptr< SteeringMethod > SteeringMethodPtr_t
Definition: fwd.hh:194
boost::shared_ptr< Distance > DistancePtr_t
Definition: fwd.hh:122
boost::shared_ptr< Progressive > ProgressivePtr_t
Definition: fwd.hh:313
Definition: progressive.hh:25
FCL_REAL distance(const KDOP< N > &other, Vec3f *P=NULL, Vec3f *Q=NULL) const