(speed_limits)
| 242 | return walkers_dict |
| 243 | |
| 244 | def get_speed_limits(speed_limits): |
| 245 | speed_limits_dict = dict() |
| 246 | for speed_limit in speed_limits: |
| 247 | sl_transform = speed_limit.get_transform() |
| 248 | location_gnss = carla_map.transform_to_geolocation(sl_transform.location) |
| 249 | sl_dict = { |
| 250 | "id": speed_limit.id, |
| 251 | "position": [location_gnss.latitude, location_gnss.longitude, location_gnss.altitude], |
| 252 | "speed": int(speed_limit.type_id.split('.')[2]) |
| 253 | } |
| 254 | speed_limits_dict[speed_limit.id] = sl_dict |
| 255 | return speed_limits_dict |
| 256 | |
| 257 | def get_static_obstacles(static_obstacles): |
| 258 | static_obstacles_dict = dict() |
no outgoing calls
no test coverage detected