CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
LabelledPoint.h
浏览该文件的文档.
1
// Copyright (c) 2020 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
"
10
#include "
carla/rpc/Location.h
"
//引入位置相关头文件
11
#include "
carla/rpc/ObjectLabel.h
"
//引入定义城市标签相关头文件
12
13
namespace
carla
{
14
namespace
rpc {
15
16
struct
LabelledPoint
{
//定义一个结构体,用于表示带标签的点
17
//构造函数
18
LabelledPoint
() {}
19
LabelledPoint
(
Location
location,
CityObjectLabel
label)
20
:
_location
(location),
_label
(label)
21
{}
22
23
Location
_location
;
//表示点的位置,类型为Location
24
25
CityObjectLabel
_label
;
//表示点的标签,类型为CityObjectLabel
26
27
MSGPACK_DEFINE_ARRAY
(
_location
,
_label
);
//使用MsgPack库定义该结构体的序列化格式,便于网络传输或持久化存储
28
29
};
30
31
}
32
}
MsgPack.h
ObjectLabel.h
carla::geom::Location
Definition
geom/Location.h:28
carla::rpc::CityObjectLabel
CityObjectLabel
Definition
ObjectLabel.h:16
carla
CARLA模拟器的主命名空间。
Definition
Carla.cpp:139
Location.h
carla::rpc::LabelledPoint
Definition
LabelledPoint.h:16
carla::rpc::LabelledPoint::_location
Location _location
Definition
LabelledPoint.h:23
carla::rpc::LabelledPoint::_label
CityObjectLabel _label
Definition
LabelledPoint.h:25
carla::rpc::LabelledPoint::LabelledPoint
LabelledPoint(Location location, CityObjectLabel label)
Definition
LabelledPoint.h:19
carla::rpc::LabelledPoint::LabelledPoint
LabelledPoint()
Definition
LabelledPoint.h:18
carla::rpc::LabelledPoint::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(_location, _label)
制作者
1.10.0