Function lanelet::utils::getId

Function Documentation

Id lanelet::utils::getId()

returns a unique id by incrementing a counter each time this is called.

Useful for creating a new map with primitives. As long as all the ids are generated using this function, it is guaranteed that there will be no duplicates. This is different from PrimitiveLayer::uniqueId, which only guarantees that an Id is unique within this layer.

This is threa safe.