Class SPARSdb::edgeWeightMap
Defined in File SPARSdb.h
Nested Relationships
This class is a nested type of Class SPARSdb.
Inheritance Relationships
Base Type
public ReadablePropertyMapConcept
Class Documentation
-
class edgeWeightMap : public ReadablePropertyMapConcept
Used to artifically supress edges during A* search.
Public Types
-
using key_type = Edge
Map key type.
-
using value_type = double
Map value type.
-
using reference = double&
Map auxiliary value type.
-
using category = boost::readable_property_map_tag
Map type.
Public Functions
-
edgeWeightMap(const Graph &graph, const EdgeCollisionStateMap &collisionStates)
Construct map for certain constraints.
- Parameters:
graph – Graph to use
-
double get(Edge e) const
Get the weight of an edge.
- Parameters:
e – the edge
- Returns:
infinity if e lies in a forbidden neighborhood; actual weight of e otherwise
-
using key_type = Edge