Skip to content

Commit

Permalink
Fixed use of OSC Paramters as entryNames for catalogs
Browse files Browse the repository at this point in the history
Change-Id: I96287fc85ec3dc0d33e79e37fa078d5414054f9c
  • Loading branch information
fabianoboril committed Nov 8, 2021
1 parent e5b06cc commit 19c8d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

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

## CARLA ScenarioRunner 0.9.12
### :rocket: New Features
Expand Down
3 changes: 1 addition & 2 deletions srunner/tools/openscenario_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ def get_catalog_entry(catalogs, catalog_reference):
returns:
Catalog entry (XML ElementTree)
"""

entry = catalogs[catalog_reference.attrib.get("catalogName")][catalog_reference.attrib.get("entryName")]
entry = catalogs[catalog_reference.attrib.get("catalogName")][ParameterRef(catalog_reference.attrib.get("entryName"))]
entry_copy = copy.deepcopy(entry)
catalog_copy = copy.deepcopy(catalog_reference)
entry = OpenScenarioParser.assign_catalog_parameters(entry_copy, catalog_copy)
Expand Down

0 comments on commit 19c8d59

Please sign in to comment.