se2ez
validity.h
Go to the documentation of this file.
1 /* Author: Zachary Kingston */
2 
3 #ifndef SE2EZ_PLAN_VALIDITY_
4 #define SE2EZ_PLAN_VALIDITY_
5 
6 #include <ompl/base/StateValidityChecker.h>
7 
9 
10 namespace se2ez
11 {
12  /** \cond IGNORE */
13  SE2EZ_CLASS_FORWARD(Robot)
14  SE2EZ_CLASS_FORWARD(CollisionManager)
15  /** \endcond */
16 
17  namespace plan
18  {
19  /** \cond IGNORE */
20  SE2EZ_CLASS_FORWARD(ValidityChecker)
21  /** \endcond */
22 
23  class ValidityChecker : public ompl::base::StateValidityChecker
24  {
25  public:
26  ValidityChecker(const ompl::base::SpaceInformationPtr &si, CollisionManagerPtr cm);
27 
28  bool isValid(const ompl::base::State *state) const override;
29  bool isValid(const ompl::base::State *state, double &dist) const override;
30  double clearance(const ompl::base::State *state) const override;
31 
32  CollisionManagerPtr getCM();
33 
34  private:
36  };
37 
38  /** \cond IGNORE */
40  /** \endcond */
41 
43  {
44  public:
45  WrappedValidityChecker(const ompl::base::SpaceInformationPtr &si, CollisionManagerPtr cm);
46 
47  bool isValid(const ompl::base::State *state) const override;
48  bool isValid(const ompl::base::State *state, double &dist) const override;
49  double clearance(const ompl::base::State *state) const override;
50  };
51  } // namespace plan
52 } // namespace se2ez
53 
54 #endif
Definition: goals.h:10
CollisionManagerPtr cm_
Definition: validity.h:35
A shared pointer wrapper for se2ez::CollisionManager.
Main namespace.
Definition: collision.h:11
#define SE2EZ_CLASS_FORWARD(C)
Definition: class_forward.h:9