CARLA
 
载入中...
搜索中...
未找到
V2XEvent.h
浏览该文件的文档.
1// Copyright (c) 2024 Institut fuer Technik der Informationsverarbeitung (ITIV) at the
2// Karlsruhe Institute of Technology
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/Debug.h"
13
14namespace carla
15{
16 namespace sensor
17 {
18 namespace data
19 {
20
21 class CAMEvent : public Array<data::CAMData>
22 {
24
25 protected:
27
28 friend Serializer;
29
30 explicit CAMEvent(RawData &&data)
31 : Super(0u, std::move(data)) {}
32
33 public:
35 {
36 return Super::size();
37 }
38 };
39
40 class CustomV2XEvent : public Array<data::CustomV2XData>
41 {
43
44 protected:
46
47 friend Serializer;
48
50 : Super(0u, std::move(data)) {}
51
52 public:
54 {
55 return Super::size();
56 }
57 };
58
59 } // namespace data
60 } // namespace sensor
61} // namespace carla
Wrapper around the raw data generated by a sensor plus some useful meta-information.
Definition RawData.h:21
Base class for all the sensor data consisting of an array of items.
Definition Array.h:23
Super::size_type GetMessageCount() const
Definition V2XEvent.h:34
CAMEvent(RawData &&data)
Definition V2XEvent.h:30
Super::size_type GetMessageCount() const
Definition V2XEvent.h:53
Serializes the data generated by V2X sensors.
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133