From 180d6262a57aa5769ce63c30d7732861f97d1317 Mon Sep 17 00:00:00 2001 From: Jose Carlos Ferrugem Date: Mon, 25 Mar 2019 14:13:23 -0400 Subject: [PATCH] adding the type of the prop --- PythonAPI/scene_layout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PythonAPI/scene_layout.py b/PythonAPI/scene_layout.py index be4e59979..8a8487896 100755 --- a/PythonAPI/scene_layout.py +++ b/PythonAPI/scene_layout.py @@ -257,7 +257,8 @@ def get_dynamic_objects(carla_world, carla_map): location_gnss = carla_map.transform_to_geolocation(sl_transform.location) sl_dict = { "id": static_prop.id, - "position": [location_gnss.latitude, location_gnss.longitude, location_gnss.altitude] + "position": [location_gnss.latitude, location_gnss.longitude, location_gnss.altitude], + "type": static_prop.type_id } static_obstacles_dict[static_prop.id] = sl_dict return static_obstacles_dict