AppBase.h
31 {
46 {
60 {
68 virtual base::ScopedState<> getFullStateFromGeometricComponent(const base::ScopedState<> &state) const = 0;
70 virtual base::ScopedState<> getGeometricComponentState(const base::ScopedState<> &state, unsigned int index) const
72 return base::ScopedState<>(getGeometricComponentStateSpace(), getGeometricComponentStateInternal(state.get(), index));
89 InferEnvironmentBounds(getGeometricComponentStateSpace(), *static_cast<RigidBodyGeometry*>(this));
94 InferProblemDefinitionBounds(AppTypeSelector<T>::SimpleSetup::getProblemDefinition(), getGeometricStateExtractor(), factor_, add_,
110 const base::StateValidityCheckerPtr &svc = allocStateValidityChecker(AppTypeSelector<T>::SimpleSetup::si_,
119 registerDefaultProjection(allocGeometricStateProjector(AppTypeSelector<T>::SimpleSetup::getStateSpace(),
142 virtual const base::State* getGeometricComponentStateInternal(const base::State* state, unsigned int index) const = 0;
144 std::string name_;
const base::OptimizationObjectivePtr & getOptimizationObjective() const
Get the optimization objective to use.
Definition: SimpleSetup.h:198
RigidBodyGeometry(MotionModel mtype, CollisionChecker ctype)
Constructor expects a state space that can represent a rigid body.
Definition: RigidBodyGeometry.h:61
MotionModel
Specify whether bodies are moving in 2D or bodies moving in 3D.
Definition: GeometrySpecification.h:44
Create the set of classes typically needed to solve a geometric problem.
Definition: SimpleSetup.h:126
void setOptimizationObjectiveAndThreshold(const std::string &objective, double threshold)
Convenience function for the omplapp GUI. The objective can be one of: "length", "max min clearance",...
Definition: AppBase.h:144
Definition: AppBase.h:60
const base::StateSpacePtr & getStateSpace() const
Get the current instance of the state space.
Definition: SimpleSetup.h:156
virtual void setup()
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: SimpleSetup.cpp:54
Create the set of classes typically needed to solve a control problem.
Definition: SimpleSetup.h:126
void setOptimizationObjective(const base::OptimizationObjectivePtr &optimizationObjective)
Set the optimization objective to use.
Definition: SimpleSetup.h:239
Definition: AppBase.h:46
control::DecompositionPtr allocDecomposition(const base::StateSpacePtr &space, MotionModel mtype, const base::StateSpacePtr &gspace)
Allocate a default 2D/3D grid decomposition (depending on the MotionModel) for use with the SyclopEST...
Definition: appUtil.cpp:245
const base::StateValidityCheckerPtr & allocStateValidityChecker(const base::SpaceInformationPtr &si, const GeometricStateExtractor &se, bool selfCollision)
Allocate default state validity checker using FCL.
Definition: RigidBodyGeometry.cpp:197
const base::StateValidityCheckerPtr & getStateValidityChecker() const
Get the current instance of the state validity checker.
Definition: SimpleSetup.h:162
void addStartState(const base::ScopedState<> &state)
Add a starting state for planning. This call is not needed if setStartAndGoalStates() has been called...
Definition: SimpleSetup.h:250
const base::ProblemDefinitionPtr & getProblemDefinition() const
Get the current instance of the problem definition.
Definition: SimpleSetup.h:144
void setup() override
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: AppBase.h:114
double factor_
The factor to multiply inferred environment bounds by (default 1)
Definition: RigidBodyGeometry.h:183
double add_
The value to add to inferred environment bounds (default 0)
Definition: RigidBodyGeometry.h:186