[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:
parent
cdd12c5a84
commit
ad860c3d1a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue