CARLA
LibCarla
source
carla
rpc
rpc/LightState.h
Go to the documentation of this file.
1
// Copyright (c) 2017 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/geom/Location.h
"
10
#include "
carla/geom/Rotation.h
"
11
#include "
carla/rpc/Color.h
"
12
13
namespace
carla
{
14
namespace
rpc {
15
16
using
LightId
= uint32_t;
17
18
class
LightState
{
19
public
:
20
21
using
flag_type
= uint8_t;
22
23
enum class
LightGroup
:
flag_type
{
24
None
= 0,
25
Vehicle
,
26
Street
,
27
Building
,
28
Other
29
};
30
31
LightState
() {}
32
33
LightState
(
34
geom::Location
location,
35
float
intensity,
36
LightGroup
group,
37
Color
color,
38
bool
active)
39
:
_location
(location),
40
_intensity
(intensity),
41
_group
(static_cast<
flag_type
>(group)),
42
_color
(color),
43
_active
(active) {}
44
45
geom::Location
_location
;
46
float
_intensity
= 0.0f;
47
LightId
_id
;
48
flag_type
_group
=
static_cast<
flag_type
>
(
LightGroup::None
);
49
Color
_color
;
50
bool
_active
=
false
;
51
52
MSGPACK_DEFINE_ARRAY
(_id, _location, _intensity, _group, _color, _active);
53
54
};
55
56
}
// namespace rpc
57
}
// namespace carla
carla::rpc::LightState::LightGroup::Street
carla::rpc::LightState::_id
LightId _id
Definition:
rpc/LightState.h:47
Location.h
carla::rpc::LightState::_color
Color _color
Definition:
rpc/LightState.h:49
carla::rpc::LightState::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(_id, _location, _intensity, _group, _color, _active)
carla::rpc::LightState::_intensity
float _intensity
Definition:
rpc/LightState.h:46
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
carla::rpc::LightState::LightState
LightState()
Definition:
rpc/LightState.h:31
Rotation.h
carla::rpc::LightState::_group
flag_type _group
Definition:
rpc/LightState.h:48
carla::rpc::LightState::LightState
LightState(geom::Location location, float intensity, LightGroup group, Color color, bool active)
Definition:
rpc/LightState.h:33
carla::rpc::LightState::LightGroup
LightGroup
Definition:
rpc/LightState.h:23
carla::rpc::LightState::_active
bool _active
Definition:
rpc/LightState.h:50
Color.h
carla::rpc::LightState::flag_type
uint8_t flag_type
Definition:
rpc/LightState.h:21
carla::rpc::LightState::LightGroup::Other
carla::rpc::LightState
Definition:
rpc/LightState.h:18
carla::rpc::LightId
uint32_t LightId
Definition:
rpc/LightState.h:16
carla::rpc::Color
Definition:
rpc/Color.h:22
carla::rpc::LightState::_location
geom::Location _location
Definition:
rpc/LightState.h:45
carla::geom::Location
Definition:
geom/Location.h:22
carla::rpc::LightState::LightGroup::Vehicle
carla::rpc::LightState::LightGroup::Building
carla::rpc::LightState::LightGroup::None
Generated by
1.8.13