scena layout

This commit is contained in:
Felipe Codevilla 2019-03-22 18:38:23 -04:00 committed by Jose Carlos Ferrugem
parent 60c61f9880
commit 45536b2ce5
1 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ def get_dynamic_objects(carla_world, carla_map):
return speed_limits_dict
def get_static_obstacles(static_obstacles):
static_obstacles = dict()
static_obstacles_dict = dict()
for speed_limit in static_obstacles:
sl_transform = static_obstacles.get_transform()
location_gnss = carla_map.transform_to_geolocation(sl_transform.location)
@ -259,8 +259,8 @@ def get_dynamic_objects(carla_world, carla_map):
"id": speed_limit.id,
"position": [location_gnss.latitude, location_gnss.longitude, location_gnss.altitude]
}
static_obstacles[speed_limit.id] = sl_dict
return static_obstacles
static_obstacles_dict[speed_limit.id] = sl_dict
return static_obstacles_dict
actors = carla_world.get_actors()
vehicles, traffic_lights, speed_limits, walkers, stops, static_obstacles = _split_actors(actors)