Skip to content

Commit

Permalink
Merge branch 'release-0-9-0-cr2odr' into 'release-0-9-0'
Browse files Browse the repository at this point in the history
Release 0 9 0 cr2odr

See merge request cps/commonroad/commonroad-scenario-designer!439
  • Loading branch information
smaierhofer committed Oct 2, 2024
2 parents c8a7323 + 4002eff commit f2fc0df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from commonroad.common.common_lanelet import LaneletType, LineMarking, StopLine
from commonroad.common.common_scenario import GeoTransformation, Location, ScenarioID
from commonroad.scenario.intersection import CrossingGroup
from commonroad.scenario.lanelet import Lanelet, LaneletNetwork
from commonroad.scenario.lanelet import Bound, Lanelet, LaneletNetwork
from commonroad.scenario.scenario import Scenario
from commonroad.scenario.traffic_sign import (
TrafficSign,
Expand Down Expand Up @@ -111,11 +111,15 @@ def convert_to_base_lanelet_network(lanelet_network: ConversionLaneletNetwork) -
for light in lanelet_network.traffic_lights:
network.add_traffic_light(light, set())
for la in lanelet_network.lanelets:
left_bound = Bound(generate_unique_id(), la.left_vertices, la.line_marking_left_vertices)
right_bound = Bound(generate_unique_id(), la.right_vertices, la.line_marking_right_vertices)
network.add_boundary(left_bound)
network.add_boundary(right_bound)
network.add_lanelet(
Lanelet(
la.left_vertices,
left_bound,
la.center_vertices,
la.right_vertices,
right_bound,
la.lanelet_id,
la.predecessor,
la.successor,
Expand Down
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2fc0df

Please sign in to comment.