Skip to content

Commit 19c8d59

Browse files
author
Fabian Oboril
committed
Fixed use of OSC Paramters as entryNames for catalogs
Change-Id: I96287fc85ec3dc0d33e79e37fa078d5414054f9c
1 parent e5b06cc commit 19c8d59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
### :bug: Bug Fixes
2121
* Fixed a bug with repetitions / scenario groups causing the simulation to crash after the second one.
22+
* Fixed use of OSC Parameters as entry names for catalogs
2223

2324
## CARLA ScenarioRunner 0.9.12
2425
### :rocket: New Features

srunner/tools/openscenario_parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ def get_catalog_entry(catalogs, catalog_reference):
361361
returns:
362362
Catalog entry (XML ElementTree)
363363
"""
364-
365-
entry = catalogs[catalog_reference.attrib.get("catalogName")][catalog_reference.attrib.get("entryName")]
364+
entry = catalogs[catalog_reference.attrib.get("catalogName")][ParameterRef(catalog_reference.attrib.get("entryName"))]
366365
entry_copy = copy.deepcopy(entry)
367366
catalog_copy = copy.deepcopy(catalog_reference)
368367
entry = OpenScenarioParser.assign_catalog_parameters(entry_copy, catalog_copy)

0 commit comments

Comments
 (0)