hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
path-validations.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 // Authors: Diane Bury
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_PATH_VALIDATIONS_HH
20 # define HPP_CORE_PATH_VALIDATIONS_HH
21 
22 # include <hpp/core/obstacle-user.hh>
24 
25 namespace hpp {
26  namespace core {
29 
33  class HPP_CORE_DLLAPI PathValidations :
34  public PathValidation,
35  public ObstacleUserVector<PathValidationPtr_t>
36  {
37  public:
38  static PathValidationsPtr_t create ();
39 
49  virtual bool validate (const PathPtr_t& path, bool reverse,
50  PathPtr_t& validPart,
52 
54  virtual void addPathValidation (const PathValidationPtr_t& pathValidation);
55 
56  virtual ~PathValidations () {};
57  protected:
58  PathValidations ();
59  }; // class PathValidations
61  } // namespace core
62 } // namespace hpp
63 
64 #endif // HPP_CORE_PATH_VALIDATIONS_HH
boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
Definition: obstacle-user.hh:83
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
boost::shared_ptr< PathValidation > PathValidationPtr_t
Definition: fwd.hh:290
Definition: path-validations.hh:33
Definition: path-validation.hh:35
virtual ~PathValidations()
Definition: path-validations.hh:56
boost::shared_ptr< PathValidationReport > PathValidationReportPtr_t
Definition: fwd.hh:298
boost::shared_ptr< PathValidations > PathValidationsPtr_t
Definition: fwd.hh:291