Aikido
MotionValidator.hpp
Go to the documentation of this file.
1 #ifndef AIKIDO_PLANNER_OMPL_MOTIONVALIDATOR_HPP_
2 #define AIKIDO_PLANNER_OMPL_MOTIONVALIDATOR_HPP_
3 
4 #include <ompl/base/MotionValidator.h>
5 
6 namespace aikido {
7 namespace planner {
8 namespace ompl {
9 
12 class MotionValidator : public ::ompl::base::MotionValidator
13 {
14 public:
22  const ::ompl::base::SpaceInformationPtr& _si,
23  double _maxDistBtwValidityChecks);
24 
29  bool checkMotion(
30  const ::ompl::base::State* _s1,
31  const ::ompl::base::State* _s2) const override;
32 
33  // Check if the path between two states is valid. Also compute the last state
34  // that was valid and the time of that state. The time is used to
35  // parameterize the motion from _s1 to _s2, _s1 being at t=0 and _s2 being at
36  // t=1. The function assumes _s1 is valid.
41  bool checkMotion(
42  const ::ompl::base::State* _s1,
43  const ::ompl::base::State* _s2,
44  std::pair<::ompl::base::State*, double>& _lastValid) const override;
45 
46 private:
48 };
49 
50 } // namespace ompl
51 } // namespace planner
52 } // namespace aikido
53 
54 #endif
aikido::planner::ompl::MotionValidator::MotionValidator
MotionValidator(const ::ompl::base::SpaceInformationPtr &_si, double _maxDistBtwValidityChecks)
Constructor.
aikido
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
aikido::planner::ompl::MotionValidator::checkMotion
bool checkMotion(const ::ompl::base::State *_s1, const ::ompl::base::State *_s2) const override
Check if the path between two states, _s1 and _s2, is valid.
aikido::planner::ompl::MotionValidator::mSequenceResolution
double mSequenceResolution
Definition: MotionValidator.hpp:47
aikido::planner::ompl::MotionValidator
Implement an OMPL MotionValidator.
Definition: MotionValidator.hpp:12