Skip to content
Snippets Groups Projects

Convert also local lane id

Merged Andreas Rauschert requested to merge convert_local_lane_id into main
Files
6
/*******************************************************************************
/*******************************************************************************
* Copyright (C) 2023-2024, ANSYS, Inc.
* Copyright (C) 2023-2024, ANSYS, Inc.
 
* Copyright (c) 2024, Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
*
*
* This program and the accompanying materials are made
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* available under the terms of the Eclipse Public License 2.0
@@ -130,6 +131,7 @@ map_api::Map::Lanes MantleMapConverter::CreateLanes(const OpenDriveData& data_st
@@ -130,6 +131,7 @@ map_api::Map::Lanes MantleMapConverter::CreateLanes(const OpenDriveData& data_st
const LaneInfo lane_info{.road_id = road.id, .lane_section_id = section_id, .lane_id = lane.id};
const LaneInfo lane_info{.road_id = road.id, .lane_section_id = section_id, .lane_id = lane.id};
auto mantle_lane = std::make_unique<map_api::Lane>(map_api::Lane{.id = id_provider_.GetLaneId(lane_info)});
auto mantle_lane = std::make_unique<map_api::Lane>(map_api::Lane{.id = id_provider_.GetLaneId(lane_info)});
 
mantle_lane->local_id = lane.id;
mantle_lane->centerline = CreateCenterLineGeometry(converter, road, section, lane.id);
mantle_lane->centerline = CreateCenterLineGeometry(converter, road, section, lane.id);
if (is_left_side)
if (is_left_side)
{
{
@@ -373,4 +375,4 @@ mantle_api::UniqueId MantleMapConverter::GetLaneId(const LaneInfo& info)
@@ -373,4 +375,4 @@ mantle_api::UniqueId MantleMapConverter::GetLaneId(const LaneInfo& info)
{
{
return id_provider_.GetLaneId(info);
return id_provider_.GetLaneId(info);
}
}
} // namespace road_logic_suite::map_conversion
} // namespace road_logic_suite::map_conversion
\ No newline at end of file
Loading