CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
AttachmentType.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 "
carla/MsgPack.h
"
// 引入MsgPack库的头文件
10
11
#include <cstdint>
// 引入C++标准库中的整数类型支持
12
13
namespace
carla
{
// 定义carla命名空间
14
namespace
rpc {
// 定义rpc子命名空间
15
16
// 定义AttachmentType枚举类,表示附加组件的类型
17
enum class
AttachmentType
: uint8_t {
18
Rigid
,
// 刚体类型
19
SpringArm
,
// 弹簧臂类型
20
SpringArmGhost
,
// 弹簧臂幽灵类型
21
22
SIZE
,
// 枚举大小,用于边界检查
23
INVALID
// 无效类型标志
24
};
25
26
}
// namespace rpc
27
}
// namespace carla
28
29
// 将AttachmentType枚举类型添加到MsgPack序列化支持中
30
MSGPACK_ADD_ENUM
(
carla::rpc::AttachmentType
);
MSGPACK_ADD_ENUM
MSGPACK_ADD_ENUM(carla::rpc::AttachmentType)
MsgPack.h
carla::rpc::AttachmentType
AttachmentType
Definition
AttachmentType.h:17
carla::rpc::AttachmentType::SpringArm
@ SpringArm
carla::rpc::AttachmentType::SpringArmGhost
@ SpringArmGhost
carla::rpc::AttachmentType::Rigid
@ Rigid
carla::rpc::ActorAttributeType::SIZE
@ SIZE
carla::rpc::ActorAttributeType::INVALID
@ INVALID
carla
CARLA模拟器的主命名空间。
Definition
Carla.cpp:139
制作者
1.10.0