CARLA
 
载入中...
搜索中...
未找到
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
13namespace carla {
14namespace rpc {
15
16 struct LabelledPoint { //定义一个结构体,用于表示带标签的点
17 //构造函数
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}
CARLA模拟器的主命名空间。
Definition Carla.cpp:139
LabelledPoint(Location location, CityObjectLabel label)
MSGPACK_DEFINE_ARRAY(_location, _label)