CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
MapLayer.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 "
MapLayer.h
"
8
9
namespace
carla
{
10
namespace
rpc {
11
12
std::string
MapLayerToString
(
MapLayer
MapLayerValue)
13
{
14
switch
(MapLayerValue)
15
{
16
case
MapLayer::None
:
return
"None"
;
17
case
MapLayer::Buildings
:
return
"Buildings"
;
18
case
MapLayer::Decals
:
return
"Decals"
;
19
case
MapLayer::Foliage
:
return
"Foliage"
;
20
case
MapLayer::Ground
:
return
"Ground"
;
21
case
MapLayer::ParkedVehicles
:
return
"Parked_Vehicles"
;
22
case
MapLayer::Particles
:
return
"Particles"
;
23
case
MapLayer::Props
:
return
"Props"
;
24
case
MapLayer::StreetLights
:
return
"StreetLights"
;
25
case
MapLayer::Walls
:
return
"Walls"
;
26
case
MapLayer::All
:
return
"All"
;
27
default
:
return
"Invalid"
;
28
}
29
}
30
31
32
}
// namespace rpc
33
}
// namespace carla
MapLayer.h
carla::rpc::MapLayer
MapLayer
Definition
MapLayer.h:19
carla::rpc::MapLayer::Walls
@ Walls
carla::rpc::MapLayer::Ground
@ Ground
carla::rpc::MapLayer::None
@ None
carla::rpc::MapLayer::ParkedVehicles
@ ParkedVehicles
carla::rpc::MapLayer::StreetLights
@ StreetLights
carla::rpc::MapLayer::Props
@ Props
carla::rpc::MapLayer::Buildings
@ Buildings
carla::rpc::MapLayer::Particles
@ Particles
carla::rpc::MapLayer::All
@ All
carla::rpc::MapLayer::Foliage
@ Foliage
carla::rpc::MapLayer::Decals
@ Decals
carla::rpc::MapLayerToString
std::string MapLayerToString(MapLayer MapLayerValue)
Definition
MapLayer.cpp:12
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0