BundleSpace.cpp
145 OptimizationObjectivePtr lengthObj = std::make_shared<base::PathLengthOptimizationObjective>(getBundle());
160 base::GoalSampleableRegion *goal = static_cast<base::GoalSampleableRegion *>(pdef_->getGoal().get());
static unsigned int counter_
Internal counter to track multiple bundle spaces.
Definition: BundleSpace.h:357
std::ostream & operator<<(std::ostream &stream, Cost c)
Output operator for Cost.
Definition: Cost.cpp:39
A shared pointer wrapper for ompl::base::Path.
void sanityChecks() const
Check if Bundle-space has correct structure.
Definition: BundleSpace.cpp:174
A space to allow the composition of state spaces.
Definition: StateSpace.h:637
A space representing discrete states; i.e. there are a small number of discrete states the system can...
Definition: DiscreteStateSpace.h:131
bool firstRun_
Variable to check if this bundle space planner has been run at.
Definition: BundleSpace.h:367
A shared pointer wrapper for ompl::control::SpaceInformation.
This namespace contains sampling based planning routines shared by both planning under geometric cons...
Definition: ConstrainedSpaceInformation.h:86
void project(const ompl::base::State *xBundle, ompl::base::State *xBase) const
Bundle Space Projection Operator onto first component ProjectBase: Bundle \rightarrow Base.
Definition: BundleSpace.cpp:464
The definition of a discrete state.
Definition: DiscreteStateSpace.h:135
void setParent(BundleSpace *parent)
Pointer to k+1 th bundle space (locally the total space)
Definition: BundleSpace.cpp:404
virtual void setup() override
Perform extra configuration steps, if needed. This call will also issue a call to ompl::base::SpaceIn...
Definition: BundleSpace.cpp:134
unsigned int id_
Identity of space (to keep track of number of Bundle-spaces created)
Definition: BundleSpace.h:360
This namespace contains datastructures and planners to exploit multilevel abstractions,...
Definition: MultiLevelPlanarManipulatorDemo.cpp:67
virtual void setProblemDefinition(const ompl::base::ProblemDefinitionPtr &pdef) override
Set the problem definition for the planner. The problem needs to be set before calling solve()....
Definition: BundleSpace.cpp:206
The definition of a state in SO(3) represented as a unit quaternion.
Definition: SO3StateSpace.h:154
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:111
A shared pointer wrapper for ompl::base::OptimizationObjective.
bool makeProjection()
Given bundle space and base space, try to guess the right.
Definition: BundleSpace.cpp:101
const RealVectorBounds & getBounds() const
Get the bounds for this state space.
Definition: RealVectorStateSpace.h:194
virtual void setup()
Perform extra configuration steps, if needed. This call will also issue a call to ompl::base::SpaceIn...
Definition: Planner.cpp:92
A state space representing Rn. The distance function is the L2 norm.
Definition: RealVectorStateSpace.h:137
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
void setChild(BundleSpace *child)
Pointer to k-1 th bundle space (locally the base space)
Definition: BundleSpace.cpp:394
ProjectionPtr getProjection() const
Get ProjectionPtr from Bundle to Base.
Definition: BundleSpace.cpp:226
Encapsulate a termination condition for a motion planner. Planners will call operator() to decide whe...
Definition: PlannerTerminationCondition.h:127
virtual void clear() override
Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() wil...
Definition: BundleSpace.cpp:164
virtual void print(std::ostream &out) const
Internal function implementing actual printing to stream.
Definition: BundleSpace.cpp:469
virtual bool hasConverged()
Check if the current space can still be sampled.
Definition: BundleSpace.cpp:374
The definition of a state in Rn
Definition: RealVectorStateSpace.h:141
A class to store the exit status of Planner::solve()
Definition: PlannerStatus.h:112
void setProjection(ProjectionPtr projection)
Set explicit projection (so that we do not need to guess.
Definition: BundleSpace.cpp:216
A shared pointer wrapper for ompl::base::ProblemDefinition.
The definition of a time state.
Definition: TimeStateSpace.h:137
unsigned int getCoDimension() const
Dimension of Bundle Space - Dimension of Base Space.
Definition: BundleSpace.cpp:346
The definition of a state in SO(2)
Definition: SO2StateSpace.h:131
virtual bool getSolution(ompl::base::PathPtr &solution)=0
Return best solution.
virtual void clear()
Clear all internal datastructures. Planner settings are not affected. Subsequent calls to solve() wil...
Definition: Planner.cpp:118
virtual void setProblemDefinition(const ProblemDefinitionPtr &pdef)
Set the problem definition for the planner. The problem needs to be set before calling solve()....
Definition: Planner.cpp:81
ProjectionPtr makeProjection(const base::SpaceInformationPtr &Bundle, const base::SpaceInformationPtr &Base)
Guess projection(s) between two SpaceInformationPtr Bundle and Base.
void lift(const ompl::base::State *xBase, ompl::base::State *xBundle) const
Lift a state from Base to Bundle.
Definition: BundleSpace.cpp:459
BundleSpace * getChild() const
Return k-1 th bundle space (locally the base space)
Definition: BundleSpace.cpp:389
A shared pointer wrapper for ompl::base::StateSpace.
const std::vector< StateSpacePtr > & getSubspaces() const
Get the list of components.
Definition: StateSpace.cpp:978
BundleSpace * getParent() const
Return k+1 th bundle space (locally the total space)
Definition: BundleSpace.cpp:399
A shared pointer wrapper for ompl::base::StateSampler.
ompl::base::State * allocIdentityStateBundle() const
Allocate State, set entries to Identity/Zero.
Definition: BundleSpace.cpp:313
static const unsigned int FIND_VALID_STATE_ATTEMPTS_WITHOUT_TERMINATION_CHECK
Maximum number of sampling attempts to find a valid state, without checking whether the allowed time ...
Definition: MagicConstants.h:159
Abstract definition of a goal region that can be sampled.
Definition: GoalSampleableRegion.h:111
virtual bool isInfeasible()
Check if any infeasibility guarantees are fulfilled.
Definition: BundleSpace.cpp:369
void checkBundleSpaceMeasure(std::string name, const ompl::base::StateSpacePtr space) const
Check if Bundle-space is bounded.
Definition: BundleSpace.cpp:190