CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
rpc/Vector2D.h
浏览该文件的文档.
1
// Copyright (c) 2019 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
// 预处理指令#pragma once用于确保该头文件在一个编译单元中只会被包含一次,避免出现重复定义等编译错误。
8
9
#include "
carla/geom/Vector2D.h
"
// 引入 "carla/geom/Vector2D.h" 头文件,推测这个头文件中定义了二维向量(Vector2D)相关的数据结构、操作函数等内容,
10
11
namespace
carla
{
12
namespace
rpc {
13
14
using
Vector2D
=
geom::Vector2D
;
// 使用using关键字创建类型别名,这里将rpc命名空间下的 Vector2D 定义为等同于 carla::geom::Vector2D 类型,
15
16
}
// namespace rpc
17
}
// namespace carla
carla::geom::Vector2D
定义两个嵌套的命名空间:carla和geom。
Definition
geom/Vector2D.h:17
Vector2D.h
carla
CARLA模拟器的主命名空间。
Definition
Carla.cpp:139
制作者
1.10.0