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 //
2 // Copyright (c) 2014, 2015, 2016, 2017 CNRS
3 // Authors: Florent Lamiraux, 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_CONTINUOUS_VALIDATION_PROGRESSIVE_HH
20 # define HPP_CORE_CONTINUOUS_VALIDATION_PROGRESSIVE_HH
21 
23 
24 namespace hpp {
25  namespace core {
26  namespace continuousValidation {
29 
43  class HPP_CORE_DLLAPI Progressive : public ContinuousValidation
44  {
45  public:
49  static ProgressivePtr_t
50  create (const DevicePtr_t& robot, const value_type& tolerance);
51  virtual ~Progressive ();
52  protected:
56  Progressive (const DevicePtr_t& robot, const value_type& tolerance);
58  void init(const ProgressiveWkPtr_t weak);
59  private:
60  // Weak pointer to itself
61  ProgressiveWkPtr_t weak_;
62  bool validateStraightPath (IntervalValidations_t& bodyPairCollisions,
63  const PathPtr_t& path, bool reverse,
64  PathPtr_t& validPart,
66  template <bool reverse>
67  bool validateStraightPath (IntervalValidations_t& bodyPairCollisions,
68  const PathPtr_t& path,
69  PathPtr_t& validPart,
71  }; // class Progressive
72  } // namespace continuousValidation
74  } // namespace core
75 } // namespace hpp
76 #endif // HPP_CORE_CONTINUOUS_VALIDATION_PROGRESSIVE_HH
boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:114
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Definition: continuous-validation.hh:86
std::vector< IntervalValidationPtr_t > IntervalValidations_t
Definition: fwd.hh:243
pinocchio::value_type value_type
Definition: fwd.hh:157
boost::shared_ptr< PathValidationReport > PathValidationReportPtr_t
Definition: fwd.hh:298
boost::shared_ptr< Progressive > ProgressivePtr_t
Definition: fwd.hh:237