PathRestriction.h
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
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
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
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