[Co-Simulation] Fix import sumo_integration module (#3988)

* fix import sumo_integration module

Fixed vtypes file path to allow importing the sumo_integration module

* CHANGELOG updated

Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
Co-authored-by: bernat <bernatx@gmail.com>
This commit is contained in:
joel-mb 2021-04-29 11:33:54 +02:00 committed by GitHub
parent cdd12c5a84
commit ad860c3d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
## Latest
* Fixed import sumo_integration module from other scripts
* Fixed bug causing the RoadOptions at the BehaviorAgent to not work as intended
* Upgrading to Unreal Engine 4.26
* Added Lincoln 2020 vehicle dimensions for CarSim integration

View File

@ -14,6 +14,7 @@
import json
import logging
import math
import os
import random
import carla # pylint: disable=import-error
@ -34,7 +35,9 @@ class BridgeHelper(object):
blueprint_library = []
offset = (0, 0)
with open('data/vtypes.json') as f:
_vtypes_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "data",
"vtypes.json")
with open(_vtypes_path) as f:
_VTYPES = json.load(f)['carla_blueprints']
@staticmethod