PathRestriction.cpp
53 PathRestriction::PathRestriction(BundleSpaceGraph *bundleSpaceGraph) : bundleSpaceGraph_(bundleSpaceGraph)
116 OMPL_DEBUG("Set new base path with %d states and length %f.", basePath_.size(), lengthBasePath_);
205 bool PathRestriction::hasFeasibleSection(Configuration *const xStart, Configuration *const xGoal)
216 OMPL_DEBUG("FindSection terminated after %.2fs (%d/%d vertices/edges).", ompl::time::seconds(t1 - tStart),
BundleSpaceGraph * bundleSpaceGraph_
Pointer to associated bundle space.
Definition: PathRestriction.h:194
std::vector< double > lengthsIntermediateBasePath_
Intermediate lengths between states on base path.
Definition: PathRestriction.h:203
A shared pointer wrapper for ompl::base::Path.
std::vector< double > lengthsCumulativeBasePath_
Cumulative lengths between states on base path.
Definition: PathRestriction.h:206
A configuration in Bundle-space.
Definition: BundleSpaceGraph.h:128
Representation of path restriction (union of fibers over a base path).
Definition: PathRestriction.h:132
This namespace contains datastructures and planners to exploit multilevel abstractions,...
Definition: MultiLevelPlanarManipulatorDemo.cpp:67
void setFindSectionStrategy(FindSectionType type)
Choose algorithm to find sections over restriction.
Definition: PathRestriction.cpp:58
int getBasePathLastIndexFromLocation(double d)
Given a position d in [0, lengthbasepath_], return the index of the nearest state on base path before...
Definition: PathRestriction.cpp:191
void interpolateBasePath(double t, base::State *&state) const
Interpolate state on base path at position t in [0, lengthbasepath_] (using discrete state representa...
Definition: PathRestriction.cpp:119
BundleSpaceGraph * getBundleSpaceGraph()
Return pointer to underlying bundle space graph.
Definition: PathRestriction.cpp:87
std::vector< base::State * > basePath_
Base path over which we define the restriction.
Definition: PathRestriction.h:197
const ompl::base::SpaceInformationPtr & getBundle() const
Get SpaceInformationPtr for Bundle.
Definition: BundleSpace.cpp:323
const ompl::base::SpaceInformationPtr & getBase() const
Get SpaceInformationPtr for Base.
Definition: BundleSpace.cpp:328
double getLengthIntermediateBasePath(int k)
Length between base state indices k and k+1.
Definition: PathRestriction.cpp:171
void setBasePath(base::PathPtr)
Set base path over which restriction is defined.
FindSectionPtr findSection_
Strategy to find a feasible section (between specific elements on fiber at first base path index and ...
Definition: PathRestriction.h:211
double getLengthBasePathUntil(int k)
Cumulative length until base state index k.
Definition: PathRestriction.cpp:176
unsigned int size() const
Return number of discrete states in base path.
Definition: PathRestriction.cpp:160
const std::vector< base::State * > & getBasePath() const
Return discrete states representation of base path.
Definition: PathRestriction.cpp:150
bool hasFeasibleSection(Configuration *const, Configuration *const)
Check if feasible section exists between xStart and xGoal.
Definition: PathRestriction.cpp:205
const base::State * getBaseStateAt(int k) const
Return State at index k on base path.
Definition: PathRestriction.cpp:165
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition: Time.h:128