Robowflex
v0.1
Making MoveIt Easy
|
A sampleable goal region for OMPL for a set of TSRs. Samples goals in a separate thread using a clone of the world. More...
#include <planning.h>
Public Member Functions | |
bool | sample (const ompl::base::GoalLazySamples *gls, ompl::base::State *state) |
Sampling routine. Generates IK samples from the TSR goal. More... | |
double | distanceGoal (const ompl::base::State *state) const override |
Distance to the goal. More... | |
TSRSetPtr | getTSRSet () |
Get the TSR set of this goal region. More... | |
Constructors. | |
TSRGoal (const ompl::base::SpaceInformationPtr &si, const WorldPtr &world, const std::vector< TSRPtr > &tsrs) | |
Constructor. More... | |
TSRGoal (const ompl::base::SpaceInformationPtr &si, const WorldPtr &world, const TSRPtr tsr) | |
Constructor. More... | |
TSRGoal (const PlanBuilder &builder, TSRPtr tsr) | |
Constructor. More... | |
TSRGoal (const PlanBuilder &builder, const std::vector< TSRPtr > &tsrs) | |
Constructor. More... | |
~TSRGoal () | |
Destructor. Stops sampling thread. More... | |
Public Member Functions inherited from robowflex::darts::ConstraintExtractor | |
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... | |
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... | |
Public Attributes | |
struct { | |
bool use_gradient {false} | |
Use gradient-based TSR solver. More... | |
std::size_t max_samples {10} | |
Maximum samples. More... | |
} | options |
Public options. More... | |
Private Attributes | |
WorldPtr | world_ |
World used. More... | |
TSRSetPtr | tsr_ |
TSR set to sample from. More... | |
ompl::base::StateSamplerPtr | sampler_ |
State sampler. More... | |
A sampleable goal region for OMPL for a set of TSRs. Samples goals in a separate thread using a clone of the world.
Definition at line 120 of file robowflex_dart/include/robowflex_dart/planning.h.
TSRGoal::TSRGoal | ( | const ompl::base::SpaceInformationPtr & | si, |
const WorldPtr & | world, | ||
const std::vector< TSRPtr > & | tsrs | ||
) |
Constructor.
[in] | si | Space information. |
[in] | world | World to use. |
[in] | tsrs | TSRs to sample. |
Definition at line 82 of file robowflex_dart/src/planning.cpp.
TSRGoal::TSRGoal | ( | const ompl::base::SpaceInformationPtr & | si, |
const WorldPtr & | world, | ||
const TSRPtr | tsr | ||
) |
Constructor.
Definition at line 102 of file robowflex_dart/src/planning.cpp.
TSRGoal::TSRGoal | ( | const PlanBuilder & | builder, |
TSRPtr | tsr | ||
) |
Constructor.
[in] | builder | Plan builder to use as base for goal. |
[in] | tsr | TSR to sample. |
Definition at line 107 of file robowflex_dart/src/planning.cpp.
TSRGoal::TSRGoal | ( | const PlanBuilder & | builder, |
const std::vector< TSRPtr > & | tsrs | ||
) |
Constructor.
[in] | builder | Plan builder to use as base for goal. |
[in] | tsrs | TSRs to sample. |
Definition at line 112 of file robowflex_dart/src/planning.cpp.
TSRGoal::~TSRGoal | ( | ) |
Destructor. Stops sampling thread.
Definition at line 121 of file robowflex_dart/src/planning.cpp.
|
override |
Distance to the goal.
[in] | state | State to measure. |
Definition at line 152 of file robowflex_dart/src/planning.cpp.
TSRSetPtr TSRGoal::getTSRSet | ( | ) |
Get the TSR set of this goal region.
Definition at line 159 of file robowflex_dart/src/planning.cpp.
bool TSRGoal::sample | ( | const ompl::base::GoalLazySamples * | gls, |
ompl::base::State * | state | ||
) |
Sampling routine. Generates IK samples from the TSR goal.
[in] | gls | This class. |
[in] | state | State to sample. |
Definition at line 126 of file robowflex_dart/src/planning.cpp.
std::size_t robowflex::darts::TSRGoal::max_samples {10} |
Maximum samples.
Definition at line 180 of file robowflex_dart/include/robowflex_dart/planning.h.
struct { ... } robowflex::darts::TSRGoal::options |
Public options.
|
private |
State sampler.
Definition at line 186 of file robowflex_dart/include/robowflex_dart/planning.h.
|
private |
TSR set to sample from.
Definition at line 185 of file robowflex_dart/include/robowflex_dart/planning.h.
bool robowflex::darts::TSRGoal::use_gradient {false} |
Use gradient-based TSR solver.
Definition at line 179 of file robowflex_dart/include/robowflex_dart/planning.h.
|
private |
World used.
Definition at line 184 of file robowflex_dart/include/robowflex_dart/planning.h.