smarts.core.default_map_builder module
- class smarts.core.default_map_builder.MapType(value)[source]
The format of a map.
- Argoverse = 4
- Opendrive = 2
- Sumo = 1
- Unknown = 0
- Waymo = 3
- smarts.core.default_map_builder.find_mapfile_in_dir(map_dir: str) Tuple[MapType, str] [source]
Looks in a given directory for a supported map file.
- smarts.core.default_map_builder.get_road_map(map_spec) Tuple[RoadMap | None, str | None] [source]
@return a RoadMap object and a hash that uniquely identifies it. Changes to the hash should signify that the map is different enough that map-related caches should be reloaded. If possible, the RoadMap object may be cached here and re-used.