Loading...
Searching...
No Matches
PlannerData.cpp
64 // return a value that is always true but uses the two variables we define, so we avoid compiler warnings
107 std::cout << "Found solution with " << slnPath.getStateCount() << " states and length " << slnPath.length()
125distanceHeuristic(ob::PlannerData::Graph::Vertex v1, const ob::GoalState *goal, const ob::OptimizationObjective *obj,
126 const boost::property_map<ob::PlannerData::Graph::Type, vertex_type_t>::type &plannerDataVertices)
165 boost::property_map<ob::PlannerData::Graph::Type, vertex_type_t>::type vertices = get(vertex_type_t(), graph);
184 for (ob::PlannerData::Graph::Vertex pos = boost::vertex(data.getGoalIndex(0), graph); prev[pos] != pos;
194 std::cout << "Found stored solution with " << path.getStateCount() << " states and length " << path.length()
const T * as(unsigned int index) const
Cast a component of this instance to a desired type.
Definition State.h:95
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition Cost.h:48
Abstract definition of optimization objectives.
Definition OptimizationObjective.h:72
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:158
An optimization objective which corresponds to optimizing path length.
Definition PathLengthOptimizationObjective.h:48
Object that handles loading/storing a PlannerData object to/from a binary stream. Serialization of ve...
Definition PlannerDataStorage.h:80
virtual bool 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:92
virtual bool store(const PlannerData &pd, const char *filename)
Store (serialize) the PlannerData structure to the given filename.
Definition PlannerDataStorage.cpp:46
Object containing planner generated vertex and edge data. It is assumed that all vertices are unique,...
Definition PlannerData.h:175
The lower and upper bounds for an Rn space.
Definition RealVectorBounds.h:48
The definition of a state in Rn.
Definition RealVectorStateSpace.h:78
A state in SE(3): position = (x, y, z), quaternion = (x, y, z, w).
Definition SE3StateSpace.h:54
The definition of a state in SO(3) represented as a unit quaternion.
Definition SO3StateSpace.h:91
std::size_t getStateCount() const
Get the number of states (way-points) that make up this path.
Definition PathGeometric.h:257
double length() const override
Compute the length of a geometric path (sum of lengths of segments that make up the path).
Definition PathGeometric.cpp:113
Create the set of classes typically needed to solve a geometric problem.
Definition SimpleSetup.h:63
This namespace contains sampling based planning routines shared by both planning under geometric cons...
Definition ConstrainedSpaceInformation.h:55
This namespace contains code that is specific to planning under geometric constraints.
Definition GeneticSearch.h:48