MCPcopy Create free account
hub / github.com/AutonomousVehicleLaboratory/SemVecNet / get_dynamic_map

Function get_dynamic_map

tools/nusc_semantic_mapping.py:136–143  ·  view source on GitHub ↗
(nusc, scene, cfg, dm_dict)

Source from the content-addressed store, hash-verified

134
135
136def get_dynamic_map(nusc, scene, cfg, dm_dict):
137 log_token = scene['log_token']
138 log = nusc.get('log', log_token)
139 location = log['location']
140 if not location in dm_dict:
141 print("Adding map location:", location)
142 dm_dict[location] = DynamicMap(cfg)
143 return dm_dict[location]
144
145
146def generate_semantic_map_on_nuscenes(nusc, segmentation, cfg, seg_color_ref):

Callers 1

Calls 1

DynamicMapClass · 0.90

Tested by

no test coverage detected