CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
client
Junction.cpp
浏览该文件的文档.
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
#include "
carla/client/Junction.h
"
8
#include "
carla/client/Map.h
"
9
#include "
carla/road/element/Waypoint.h
"
10
11
namespace
carla
{
12
namespace
client {
13
14
Junction::Junction(
SharedPtr<const Map>
parent,
const
road::Junction
*junction) : _parent(parent) {
15
_bounding_box
= junction->
GetBoundingBox
();
16
_id
= junction->
GetId
();
17
}
18
19
std::vector<std::pair<SharedPtr<Waypoint>,
SharedPtr<Waypoint>
>> Junction::GetWaypoints(
20
road::Lane::LaneType
type)
const
{
21
return
_parent
->GetJunctionWaypoints(
GetId
(), type);
22
}
23
24
geom::BoundingBox
Junction::GetBoundingBox()
const
{
25
return
_bounding_box
;
26
}
27
28
}
// namespace client
29
}
// namespace carla
carla::client::Junction::GetId
carla::road::JuncId GetId() const
Definition
client/Junction.h:29
carla::client::Junction::_bounding_box
geom::BoundingBox _bounding_box
Definition
client/Junction.h:46
carla::client::Junction::_parent
SharedPtr< const Map > _parent
Definition
client/Junction.h:44
carla::client::Junction::_id
road::JuncId _id
Definition
client/Junction.h:48
carla::geom::BoundingBox
Definition
LibCarla/source/carla/geom/BoundingBox.h:26
carla::road::Junction
Definition
road/Junction.h:23
carla::road::Junction::GetId
JuncId GetId() const
Definition
road/Junction.h:53
carla::road::Junction::GetBoundingBox
carla::geom::BoundingBox GetBoundingBox() const
Definition
road/Junction.h:73
carla::road::Lane::LaneType
LaneType
Can be used as flags
Definition
Lane.h:29
Junction.h
Map.h
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
carla::SharedPtr
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
Waypoint.h
制作者
1.10.0