Go to the documentation of this file. 1 #ifndef AIKIDO_OMPL_GOALREGION_HPP_
2 #define AIKIDO_OMPL_GOALREGION_HPP_
4 #include <ompl/base/goals/GoalSampleableRegion.h>
14 class GoalRegion :
public ::ompl::base::GoalSampleableRegion
25 const ::ompl::base::SpaceInformationPtr& _si,
27 std::unique_ptr<constraint::SampleGenerator> _generator);
32 void sampleGoal(::ompl::base::State* _state)
const override;
43 double distanceGoal(const ::ompl::base::State* _state)
const override;
47 bool isSatisfied(const ::ompl::base::State* _state)
const override;
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
GoalRegion(const ::ompl::base::SpaceInformationPtr &_si, constraint::TestablePtr _goalTestable, std::unique_ptr< constraint::SampleGenerator > _generator)
Constructor.
std::unique_ptr< constraint::SampleGenerator > mSampleGenerator
Definition: GoalRegion.hpp:51
bool isSatisfied(const ::ompl::base::State *_state) const override
Return true if the state satisfies the goal constraints.
unsigned int maxSampleCount() const override
Return the maximum number of samples that can be asked for before repeating.
constraint::TestablePtr mTestable
Definition: GoalRegion.hpp:50
Exposes a Testable/Sampleable constraint pair as a goal to OMPL planners.
Definition: GoalRegion.hpp:14
double distanceGoal(const ::ompl::base::State *_state) const override
Return 0 if the goal is satisfied or inf otherwise.
void sampleGoal(::ompl::base::State *_state) const override
Sample a state in the goal region using the SampleGenerator defined on the class.
bool couldSample() const override
Return true if the SampleGenerator can generate more samples.
std::shared_ptr< Testable > TestablePtr
Definition: Testable.hpp:13