Robowflex
v0.1
Making MoveIt Easy
|
Helper class to manage extracting states from a possibly constrained state space. More...
#include <planning.h>
Public Member Functions | |
ConstraintExtractor ()=default | |
Constructor. More... | |
ConstraintExtractor (const ompl::base::SpaceInformationPtr &si) | |
Constructor. More... | |
const StateSpace * | getSpace () const |
Gets the underlying state space from the space information. More... | |
void | setSpaceInformation (const ompl::base::SpaceInformationPtr &si) |
Set space information used for constraint extraction. More... | |
State Access | |
StateSpace::StateType * | toState (ompl::base::State *state) const |
Extract underlying state from a base state. More... | |
const StateSpace::StateType * | toStateConst (const ompl::base::State *state) const |
Extract underlying state from a base state. More... | |
StateSpace::StateType * | fromConstrainedState (ompl::base::State *state) const |
Access the underlying state from a constrained OMPL state. More... | |
const StateSpace::StateType * | fromConstrainedStateConst (const ompl::base::State *state) const |
Access the underlying state from a constrained OMPL state. More... | |
StateSpace::StateType * | fromUnconstrainedState (ompl::base::State *state) const |
Access the underlying state from an unconstrained OMPL state. More... | |
const StateSpace::StateType * | fromUnconstrainedStateConst (const ompl::base::State *state) const |
Access the underlying state from an unconstrained OMPL state. More... | |
Private Attributes | |
ompl::base::SpaceInformationPtr | space_info_ |
Space Information. More... | |
bool | is_constrained_ {false} |
Is the underlying space constrained? More... | |
Helper class to manage extracting states from a possibly constrained state space.
Definition at line 49 of file robowflex_dart/include/robowflex_dart/planning.h.
|
default |
Constructor.
ConstraintExtractor::ConstraintExtractor | ( | const ompl::base::SpaceInformationPtr & | si | ) |
Constructor.
[in] | si | The space information. |
Definition at line 24 of file robowflex_dart/src/planning.cpp.
StateSpace::StateType * ConstraintExtractor::fromConstrainedState | ( | ompl::base::State * | state | ) | const |
Access the underlying state from a constrained OMPL state.
[in] | state | Constrained state to access. |
Definition at line 48 of file robowflex_dart/src/planning.cpp.
const StateSpace::StateType * ConstraintExtractor::fromConstrainedStateConst | ( | const ompl::base::State * | state | ) | const |
Access the underlying state from a constrained OMPL state.
[in] | state | Constrained state to access. |
Definition at line 54 of file robowflex_dart/src/planning.cpp.
StateSpace::StateType * ConstraintExtractor::fromUnconstrainedState | ( | ompl::base::State * | state | ) | const |
Access the underlying state from an unconstrained OMPL state.
[in] | state | Unconstrained state to access. |
Definition at line 59 of file robowflex_dart/src/planning.cpp.
const StateSpace::StateType * ConstraintExtractor::fromUnconstrainedStateConst | ( | const ompl::base::State * | state | ) | const |
Access the underlying state from an unconstrained OMPL state.
[in] | state | Unconstrained state to access. |
Definition at line 65 of file robowflex_dart/src/planning.cpp.
const StateSpace * ConstraintExtractor::getSpace | ( | ) | const |
Gets the underlying state space from the space information.
Definition at line 70 of file robowflex_dart/src/planning.cpp.
void ConstraintExtractor::setSpaceInformation | ( | const ompl::base::SpaceInformationPtr & | si | ) |
Set space information used for constraint extraction.
[in] | si | The space information. |
Definition at line 29 of file robowflex_dart/src/planning.cpp.
StateSpace::StateType * ConstraintExtractor::toState | ( | ompl::base::State * | state | ) | const |
Extract underlying state from a base state.
[in] | state | State. |
Definition at line 35 of file robowflex_dart/src/planning.cpp.
const StateSpace::StateType * ConstraintExtractor::toStateConst | ( | const ompl::base::State * | state | ) | const |
Extract underlying state from a base state.
[in] | state | State. |
Definition at line 43 of file robowflex_dart/src/planning.cpp.
|
private |
Is the underlying space constrained?
Definition at line 114 of file robowflex_dart/include/robowflex_dart/planning.h.
|
private |
Space Information.
Definition at line 113 of file robowflex_dart/include/robowflex_dart/planning.h.