|
Aikido
|
Exposes a Testable/Sampleable constraint pair as a goal to OMPL planners. More...
#include <aikido/planner/ompl/GoalRegion.hpp>
Public Member Functions | |
| GoalRegion (const ::ompl::base::SpaceInformationPtr &_si, constraint::TestablePtr _goalTestable, std::unique_ptr< constraint::SampleGenerator > _generator) | |
| Constructor. More... | |
| void | sampleGoal (::ompl::base::State *_state) const override |
| Sample a state in the goal region using the SampleGenerator defined on the class. More... | |
| unsigned int | maxSampleCount () const override |
| Return the maximum number of samples that can be asked for before repeating. More... | |
| bool | couldSample () const override |
| Return true if the SampleGenerator can generate more samples. More... | |
| double | distanceGoal (const ::ompl::base::State *_state) const override |
| Return 0 if the goal is satisfied or inf otherwise. More... | |
| bool | isSatisfied (const ::ompl::base::State *_state) const override |
| Return true if the state satisfies the goal constraints. More... | |
Private Attributes | |
| constraint::TestablePtr | mTestable |
| std::unique_ptr< constraint::SampleGenerator > | mSampleGenerator |
Exposes a Testable/Sampleable constraint pair as a goal to OMPL planners.
| aikido::planner::ompl::GoalRegion::GoalRegion | ( | const ::ompl::base::SpaceInformationPtr & | _si, |
| constraint::TestablePtr | _goalTestable, | ||
| std::unique_ptr< constraint::SampleGenerator > | _generator | ||
| ) |
Constructor.
Generate a goal region from a Testable constraint and a SampleGenerator.
| _si | The SpaceInformation defining the planning instance where this goal is used |
| _goalTestable | A Testable that is satisfied for all states in this GoalRegion |
| _generator | A SampleGenerator that returns states in this GoalRegion |
|
override |
Return true if the SampleGenerator can generate more samples.
|
override |
Return 0 if the goal is satisfied or inf otherwise.
| _state | The state to evaluate |
|
override |
Return true if the state satisfies the goal constraints.
| _state | The state to evaluate |
|
override |
Return the maximum number of samples that can be asked for before repeating.
|
override |
Sample a state in the goal region using the SampleGenerator defined on the class.
| [out] | _state | The sampled state |
|
private |
|
private |