1 #ifndef LOCAL_OBSTACLE_MAP_H_
2 #define LOCAL_OBSTACLE_MAP_H_
5 #define INVALID_VID (std::numeric_limits<size_t>::max())
9 #define INVALID_EID (std::numeric_limits<size_t>::max())
18 #include <unordered_map>
19 #include <unordered_set>
42 typedef std::unordered_map<VID, VertexSet>
MapType;
62 template <
typename ContainerType>
74 template <
typename ContainerType>
85 void Add(
const VID& _obst,
const VID& _free);
87 template <
typename ContainerType>
88 void Add(
const ContainerType& _obst,
const VID& _free);
90 template <
typename ContainerType>
91 void Add(
const VID& _obst,
const ContainerType& _free);
93 template <
typename ContainerType>
94 void Add(
const ContainerType& _obst,
const ContainerType& _free);
106 template <
typename ContainerType>
107 void Delete(
const VID& _obst,
const ContainerType& _free);
109 template <
typename ContainerType>
112 template <
typename ContainerType>
113 void Delete(
const ContainerType& _obst,
const ContainerType& _free);
127 static constexpr
bool s_debug{
false};
#define INVALID_VID
Definition: LocalObstacleMap.h:5
Definition: GenericStateGraph.h:67
Definition: LocalObstacleMap.h:27
std::unordered_set< VID > VertexSet
Definition: LocalObstacleMap.h:41
const VertexSet & Inverse(const VID &_vid) const
Definition: LocalObstacleMap.cpp:37
std::unordered_map< VID, VertexSet > MapType
Definition: LocalObstacleMap.h:42
void Delete(const VID &_obst=INVALID_VID, const VID &_free=INVALID_VID)
Definition: LocalObstacleMap.cpp:111
size_t VID
Definition: LocalObstacleMap.h:35
LocalObstacleMap(StatClass *const _stats)
Definition: LocalObstacleMap.cpp:9
const VertexSet & Get(const VID &_vid) const
Definition: LocalObstacleMap.cpp:15
void Add(const VID &_obst, const VID &_free)
Definition: LocalObstacleMap.cpp:60
GenericStateGraph< Cfg, DefaultWeight< Cfg > > RoadmapType
Definition: LocalObstacleMap.h:34
Definition: MetricUtils.h:29