27 #ifndef BATCHING_POMP_SINGLE_BATCHING_HPP_ 28 #define BATCHING_POMP_SINGLE_BATCHING_HPP_ 30 #include <ompl/base/StateSpace.h> 31 #include <ompl/util/Console.h> 32 #include <boost/graph/adjacency_list.hpp> 33 #include <boost/graph/properties.hpp> 34 #include "batching_pomp/batching/BatchingManager.hpp" 44 template<
class Graph,
class VStateMap,
class StateCon,
class EDistance>
48 typedef boost::graph_traits<Graph> GraphTypes;
49 typedef typename GraphTypes::vertex_iterator VertexIter;
50 typedef typename GraphTypes::vertex_descriptor Vertex;
57 EDistance _distanceMap,
58 std::string _roadmapFileName,
60 Graph& _currentRoadmap
63 (_space,_stateMap,_distanceMap,_roadmapFileName,_fullRoadmap,_currentRoadmap)
74 void nextBatch(
const std::function<
bool(
const ompl::base::State*)>& _pruneFunction,
75 ompl::NearestNeighbors<Vertex>& _vertexNN)
override 78 OMPL_INFORM(
"Batching exhausted! No updates with nextBatch!");
82 OMPL_INFORM(
"Single Batch called!");
99 #endif // BATCHING_POMP_SINGLE_BATCHING_HPP_ void nextBatch(const std::function< bool(const ompl::base::State *)> &_pruneFunction, ompl::NearestNeighbors< Vertex > &_vertexNN) override
Definition: SingleBatching.hpp:74
void updateWithNewSolutionCost(double _newSolnCost) override
Overriden methods.
Definition: SingleBatching.hpp:70
Abstract class that represents the batching strategy used for the planning algorithm.
Definition: BatchingManager.hpp:51
Derived class of BatchingManager that implements a single batch search.
Definition: SingleBatching.hpp:45
Definition: BatchingManager.hpp:36
void pruneVertices(const std::function< bool(const ompl::base::State *)> &_pruneFunction, ompl::NearestNeighbors< Vertex > &_vertexNN)
Definition: BatchingManager.hpp:144