// Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see . #include "carla/client/Junction.h" #include "carla/client/Map.h" #include "carla/road/element/Waypoint.h" namespace carla { namespace client { Junction::Junction(SharedPtr parent, const road::Junction *junction) : _parent(parent) { _bounding_box = junction->GetBoundingBox(); _id = junction->GetId(); } std::vector, SharedPtr>> Junction::GetWaypoints( road::Lane::LaneType type) const { return _parent->GetJunctionWaypoints(GetId(), type); } geom::BoundingBox Junction::GetBoundingBox() const { return _bounding_box; } } // namespace client } // namespace carla