@@ -277,7 +277,7 @@ std::map<std::size_t, std::string> getRoadMetadataMap(const OpenDriveMap& odr_ma
277277 for (const auto & [vert_idx, road_id_val] : mesh.road_start_indices )
278278 {
279279 const std::string& road_id = road_id_val;
280- auto cache_it = road_meta_cache.find (road_id);
280+ auto cache_it = road_meta_cache.find (road_id);
281281 if (cache_it != road_meta_cache.end ())
282282 {
283283 result[vert_idx] = cache_it->second ;
@@ -307,8 +307,8 @@ std::map<std::size_t, std::string> getRoadMetadataMap(const OpenDriveMap& odr_ma
307307 road_type = road.s_to_type .begin ()->second ;
308308 }
309309
310- std::string meta = road. name + " \t " + std::to_string (road. length ) + " \t " + road. junction + " \t " + speed_max + " \t " + speed_unit +
311- " \t " + road_type;
310+ std::string meta =
311+ road. name + " \t " + std::to_string (road. length ) + " \t " + road. junction + " \t " + speed_max + " \t " + speed_unit + " \t " + road_type;
312312 road_meta_cache[road_id] = meta;
313313 result[vert_idx] = meta;
314314 }
@@ -344,9 +344,9 @@ std::map<std::size_t, std::string> getRoadObjectMetadataMap(const OpenDriveMap&
344344 continue ;
345345
346346 const RoadObject& obj = obj_it->second ;
347- result[vert_idx] = obj.type + " \t " + obj.name + " \t " + obj.subtype + " \t " + obj.orientation + " \t " +
348- (obj. is_dynamic ? " true " : " false " ) + " \t " + std::to_string (obj.width ) + " \t " + std::to_string (obj.height ) +
349- " \t " + std::to_string (obj. length ) + " \t " + std::to_string (obj.s0 ) + " \t " + std::to_string (obj.t0 );
347+ result[vert_idx] = obj.type + " \t " + obj.name + " \t " + obj.subtype + " \t " + obj.orientation + " \t " + (obj. is_dynamic ? " true " : " false " ) +
348+ " \t " + std::to_string (obj. width ) + " \t " + std::to_string (obj.height ) + " \t " + std::to_string (obj.length ) + " \t " +
349+ std::to_string (obj.s0 ) + " \t " + std::to_string (obj.t0 );
350350 }
351351 return result;
352352}
@@ -379,9 +379,9 @@ std::map<std::size_t, std::string> getRoadSignalMetadataMap(const OpenDriveMap&
379379 continue ;
380380
381381 const RoadSignal& sig = sig_it->second ;
382- result[vert_idx] = sig.name + " \t " + sig.country + " \t " + sig.type + " \t " + sig.subtype + " \t " + std::to_string (sig.value ) +
383- " \t " + sig. text + " \t " + (sig.is_dynamic ? " true" : " false" ) + " \t " + std::to_string (sig.height ) + " \t " +
384- std::to_string (sig. width ) + " \t " + sig.orientation ;
382+ result[vert_idx] = sig.name + " \t " + sig.country + " \t " + sig.type + " \t " + sig.subtype + " \t " + std::to_string (sig.value ) + " \t " + sig. text +
383+ " \t " + (sig.is_dynamic ? " true" : " false" ) + " \t " + std::to_string (sig.height ) + " \t " + std::to_string (sig. width ) + " \t " +
384+ sig.orientation ;
385385 }
386386 return result;
387387}
@@ -456,7 +456,8 @@ std::map<std::size_t, std::string> getRoadLinkageMap(const OpenDriveMap& odr_map
456456 std::map<std::size_t , std::string> result;
457457 std::map<std::string, std::string> link_cache;
458458
459- auto contact_str = [](RoadLink::ContactPoint cp) -> std::string {
459+ auto contact_str = [](RoadLink::ContactPoint cp) -> std::string
460+ {
460461 switch (cp)
461462 {
462463 case RoadLink::ContactPoint::Start:
@@ -468,7 +469,8 @@ std::map<std::size_t, std::string> getRoadLinkageMap(const OpenDriveMap& odr_map
468469 }
469470 };
470471
471- auto type_str = [](RoadLink::Type t) -> std::string {
472+ auto type_str = [](RoadLink::Type t) -> std::string
473+ {
472474 switch (t)
473475 {
474476 case RoadLink::Type::Road:
@@ -495,8 +497,8 @@ std::map<std::size_t, std::string> getRoadLinkageMap(const OpenDriveMap& odr_map
495497
496498 const Road& road = road_it->second ;
497499
498- std::string meta = road.predecessor .id + " \t " + type_str (road.predecessor .type ) + " \t " + contact_str (road.predecessor .contact_point ) +
499- " \t " + road.successor .id + " \t " + type_str (road.successor .type ) + " \t " + contact_str (road.successor .contact_point );
500+ std::string meta = road.predecessor .id + " \t " + type_str (road.predecessor .type ) + " \t " + contact_str (road.predecessor .contact_point ) + " \t " +
501+ road.successor .id + " \t " + type_str (road.successor .type ) + " \t " + contact_str (road.successor .contact_point );
500502 link_cache[road_id_val] = meta;
501503 result[vert_idx] = meta;
502504 }
0 commit comments