CARLA
 
载入中...
搜索中...
未找到
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
13namespace carla { // 定义carla命名空间
14namespace 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序列化支持中
MSGPACK_ADD_ENUM(carla::rpc::AttachmentType)
CARLA模拟器的主命名空间。
Definition Carla.cpp:139