CARLA
 
载入中...
搜索中...
未找到
ActorAttributeType.h
浏览该文件的文档.
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 <cstdint>
10
11namespace carla {
12namespace rpc {
13
14 enum class ActorAttributeType : uint8_t {
15 // 表示布尔类型的属性,枚举值被赋值为 1u(后缀 u 表示无符号整数常量),用于在代码中区分不同类型的 actor 属性
16 Bool = 1u,
17 // 表示整数类型的属性,枚举值为 2u,可能用于存储如年龄、数量等整数值的属性
18 Int = 2u,
19// 表示单精度浮点数类型的属性,枚举值为 3u,可用于存储像坐标、速度等带有小数部分的数值属性
20 Float = 3u,
21// 表示字符串类型的属性,枚举值为 4u,用于存储文本相关的属性信息
22 String = 4u,
23// 表示 RGB 颜色类型的属性,枚举值为 5u,可能用于表示颜色相关的属性
24 RGBColor = 5u,
25
26 SIZE,
28 };
29
30 // Serialization of this class is in ActorAttribute.h, to reduce dependencies
31 // since this file is directly included in UE4 code.
32
33} // namespace rpc
34} // namespace carla
CARLA模拟器的主命名空间。
Definition Carla.cpp:139