PlannerData.cpp
65 // return a value that is always true but uses the two variables we define, so we avoid compiler warnings
108 std::cout << "Found solution with " << slnPath.getStateCount() << " states and length " << slnPath.length() << std::endl;
167 boost::property_map<ob::PlannerData::Graph::Type, vertex_type_t>::type vertices = get(vertex_type_t(), graph);
175 [&goal, &opt, &vertices](ob::PlannerData::Graph::Vertex v1) { return distanceHeuristic(v1, &goal, &opt, vertices); },
This namespace contains code that is specific to planning under geometric constraints.
Definition: GeneticSearch.h:79
const T * as(unsigned int index) const
Cast a component of this instance to a desired type.
Definition: State.h:159
An optimization objective which corresponds to optimizing path length.
Definition: PathLengthOptimizationObjective.h:111
This namespace contains sampling based planning routines shared by both planning under geometric cons...
Definition: ConstrainedSpaceInformation.h:86
Create the set of classes typically needed to solve a geometric problem.
Definition: SimpleSetup.h:126
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:111
ompl::base::State StateType
Define the type of state allocated by this space.
Definition: StateSpace.h:142
Object containing planner generated vertex and edge data. It is assumed that all vertices are unique,...
Definition: PlannerData.h:238
Abstract definition of optimization objectives.
Definition: OptimizationObjective.h:138
virtual void store(const PlannerData &pd, const char *filename)
Store (serialize) the PlannerData structure to the given filename.
Definition: PlannerDataStorage.cpp:46
Object that handles loading/storing a PlannerData object to/from a binary stream. Serialization of ve...
Definition: PlannerDataStorage.h:143
std::size_t getStateCount() const
Get the number of states (way-points) that make up this path.
Definition: PathGeometric.h:292
virtual void load(const char *filename, PlannerData &pd)
Load the PlannerData structure from the given stream. The StateSpace that was used to store the data ...
Definition: PlannerDataStorage.cpp:87
Cost costToGo(const State *state, const Goal *goal) const
Uses a cost-to-go heuristic to calculate an admissible estimate of the optimal cost from a given stat...
Definition: OptimizationObjective.cpp:153
ompl::base::CompoundState StateType
Define the type of state allocated by this state space.
Definition: StateSpace.h:641
double length() const override
Compute the length of a geometric path (sum of lengths of segments that make up the path)
Definition: PathGeometric.cpp:112
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:111