CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
multigpu
commands.h
浏览该文件的文档.
1
// Copyright (c) 2022 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
11
namespace
carla
{
12
namespace
multigpu {
13
// 使用uint32_t作为枚举的基础类型,确保枚举值有足够的表示范围
14
enum
MultiGPUCommand
: uint32_t {
15
SEND_FRAME
= 0,
// 发送帧数据,可能是模拟环境中的一帧图像或传感器数据
16
LOAD_MAP
,
// 加载地图数据,用于模拟环境的构建
17
GET_TOKEN
,
// 获取某种令牌或标识符,可能用于同步或权限控制
18
ENABLE_ROS
,
// 启用ROS(Robot Operating System)集成,ROS是一个用于机器人开发的灵活框架
19
DISABLE_ROS
,
// 禁用ROS集成
20
IS_ENABLED_ROS
,
// 查询ROS集成是否启用
21
YOU_ALIVE
// 一种心跳或存活检查命令,用于确认接收方是否在线或响应
22
};
23
// 定义一个结构体CommandHeader,用于表示命令的头部信息
24
// 头部信息通常包括命令的标识符和后续数据的大小
25
struct
CommandHeader
{
26
MultiGPUCommand
id
;
// 命令的标识符,从MultiGPUCommand枚举中选择
27
uint32_t
size
;
// 跟随此头部之后的数据的大小(以字节为单位
28
};
29
30
}
// namespace multigpu 结束multigpu命名空间的定义
31
}
// namespace carla 结束carla命名空间的定义
carla::multigpu::MultiGPUCommand
MultiGPUCommand
Definition
commands.h:14
carla::multigpu::SEND_FRAME
@ SEND_FRAME
Definition
commands.h:15
carla::multigpu::ENABLE_ROS
@ ENABLE_ROS
Definition
commands.h:18
carla::multigpu::GET_TOKEN
@ GET_TOKEN
Definition
commands.h:17
carla::multigpu::DISABLE_ROS
@ DISABLE_ROS
Definition
commands.h:19
carla::multigpu::LOAD_MAP
@ LOAD_MAP
Definition
commands.h:16
carla::multigpu::YOU_ALIVE
@ YOU_ALIVE
Definition
commands.h:21
carla::multigpu::IS_ENABLED_ROS
@ IS_ENABLED_ROS
Definition
commands.h:20
carla
CARLA模拟器的主命名空间。
Definition
Carla.cpp:139
carla::multigpu::CommandHeader
Definition
commands.h:25
carla::multigpu::CommandHeader::size
uint32_t size
Definition
commands.h:27
carla::multigpu::CommandHeader::id
MultiGPUCommand id
Definition
commands.h:26
制作者
1.10.0