CARLA
 
载入中...
搜索中...
未找到
client/Junction.h
浏览该文件的文档.
1// Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include "carla/Memory.h"
10#include "carla/NonCopyable.h"
11#include "carla/road/Junction.h"
15
16#include <vector>
17
18namespace carla {
19namespace client {
20
21 class Map;
22
24 : public EnableSharedFromThis<Junction>,
25 private NonCopyable
26 {
27 public:
28
30 return _id;
31 }
32
33 std::vector<std::pair<SharedPtr<Waypoint>,SharedPtr<Waypoint>>> GetWaypoints(
35
37
38 private:
39
40 friend class Map;
41
42 Junction(SharedPtr<const Map> parent, const road::Junction *junction);
43
45
47
49 };
50
51} // namespace client
52} // namespace carla
Inherit (privately) to suppress copy/move construction and assignment.
std::vector< std::pair< SharedPtr< Waypoint >, SharedPtr< Waypoint > > > GetWaypoints(road::Lane::LaneType type=road::Lane::LaneType::Driving) const
Definition Junction.cpp:19
geom::BoundingBox GetBoundingBox() const
Definition Junction.cpp:24
carla::road::JuncId GetId() const
geom::BoundingBox _bounding_box
SharedPtr< const Map > _parent
LaneType
Can be used as flags
Definition Lane.h:29
int32_t JuncId
Definition RoadTypes.h:17
carla::SharedPtr< carla::client::Junction > Junction
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
Definition Memory.h:20