hpp-rbprm  4.12.0
Implementation of RB-PRM planner using hpp.
dynamic-path-validation.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 // Authors: Fernbach Pierre
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 #ifndef HPP_RBPRM_DYNAMIC_PATH_VALIDATION_HH
20 #define HPP_RBPRM_DYNAMIC_PATH_VALIDATION_HH
23 namespace hpp {
24 namespace rbprm {
25 
26 // forward declaration
27 HPP_PREDEF_CLASS(DynamicPathValidation);
28 // Planner objects are manipulated only via shared pointers
29 typedef std::shared_ptr<DynamicPathValidation> DynamicPathValidationPtr_t;
30 
32  public:
34  static DynamicPathValidationPtr_t create(const core::DevicePtr_t& robot, const core::value_type& stepSize);
35 
37  virtual bool validate(const core::PathPtr_t& path, bool reverse, core::PathPtr_t& validPart,
38  core::PathValidationReportPtr_t& report, const std::vector<std::string>& filter);
39 
40  virtual bool validate(const core::PathPtr_t& path, bool reverse, core::PathPtr_t& validPart,
41  core::PathValidationReportPtr_t& report);
42 
43  void addDynamicValidator(const DynamicValidationPtr_t& dynamicValidation) {
44  core::pathValidation::Discretized::add(dynamicValidation);
45  dynamicValidation_ = dynamicValidation;
46  }
47 
48  protected:
51  DynamicPathValidation(const core::DevicePtr_t& robot, const core::value_type& stepSize);
52 
53  private:
54  DynamicValidationPtr_t dynamicValidation_;
55 }; // class RbPrmPlanner
56 } // namespace rbprm
57 } // namespace hpp
58 
59 #endif // HPP_RBPRM_DYNAMIC_PATH_VALIDATION_HH
#define HPP_RBPRM_DLLAPI
Definition: config.hh:64
Definition: algorithm.hh:27
void addDynamicValidator(const DynamicValidationPtr_t &dynamicValidation)
Definition: dynamic-path-validation.hh:43
std::shared_ptr< DynamicValidation > DynamicValidationPtr_t
Definition: dynamic-validation.hh:46
HPP_PREDEF_CLASS(RbPrmFullBody)
Definition: dynamic-path-validation.hh:31
std::shared_ptr< DynamicPathValidation > DynamicPathValidationPtr_t
Definition: dynamic-path-validation.hh:29
Definition: rbprm-path-validation.hh:33