CARLA
 
载入中...
搜索中...
未找到
client/LightState.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
11
12namespace carla {
13namespace client {
14
16using LightId = uint32_t;
17
18struct LightState {
19
21
23
25 float intensity,
26 Color color,
27 LightGroup group,
28 bool active)
29 : _intensity(intensity),
30 _color(color),
31 _group(group),
32 _active(active){}
33
34 void Reset () {
35 _intensity = 0.0f;
36 _color.r = 0;
37 _color.g = 0;
38 _color.b = 0;
39 _group = LightGroup::None;
40 _active = false;
41 }
42
43 float _intensity = 0.0f;
45 LightGroup _group = LightGroup::None;
46 bool _active = false;
47};
48
49} // namespace client
50} // namespace carla
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133
LightState(float intensity, Color color, LightGroup group, bool active)