37 #ifndef OMPL_GEOMETRIC_PLANNERS_BITSTAR_DATASTRUCTURES_IDGENERATOR_ 38 #define OMPL_GEOMETRIC_PLANNERS_BITSTAR_DATASTRUCTURES_IDGENERATOR_ 42 #include "ompl/geometric/planners/bitstar/BITstar.h" 47 #include <boost/scoped_ptr.hpp> 67 std::lock_guard<std::mutex> lockGuard(idMutex_);
88 std::once_flag g_IdInited;
90 boost::scoped_ptr<ompl::geometric::BITstar::IdGenerator> g_IdGenerator;
93 void initIdGenerator()
101 std::call_once(g_IdInited, &initIdGenerator);
102 return *g_IdGenerator;
105 #endif // OMPL_GEOMETRIC_PLANNERS_BITSTAR_DATASTRUCTURES_IDGENERATOR_ Main namespace. Contains everything in this library.
BITstar::VertexId getNewId()
Generator a new id and increment the global/static counter of IDs.
An ID generator class for vertex IDs.
unsigned int VertexId
The vertex id type.