CARLA
Loading...
Searching...
No Matches
V2XEvent.h
Go to the documentation of this file.
1// Copyright (c) 2026 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/Debug.h"
13
14namespace carla {
15namespace sensor {
16namespace data {
17
18 class CAMEvent : public Array<data::CAMData> {
20
21 protected:
22
24
25 friend Serializer;
26
27 explicit CAMEvent(RawData &&data)
28 : Super(0u, std::move(data)) {}
29
30 public:
31
33 return Super::size();
34 }
35 };
36
37 class CustomV2XEvent : public Array<data::CustomV2XData> {
39
40 protected:
41
43
44 friend Serializer;
45
47 : Super(0u, std::move(data)) {}
48
49 public:
50
52 return Super::size();
53 }
54 };
55
56} // namespace data
57} // namespace sensor
58} // 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:32
CAMEvent(RawData &&data)
Definition V2XEvent.h:27
Super::size_type GetMessageCount() const
Definition V2XEvent.h:51
Serializes the CAM data generated by V2X sensors.
Serializes the custom message data generated by V2X sensors.
This file contains definitions of common data structures used in traffic manager.