CARLA
Loading...
Searching...
No Matches
LibCarla
source
carla
sensor
s11n
V2XSerializer.cpp
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
#include "
carla/sensor/s11n/V2XSerializer.h
"
8
9
#include "
carla/sensor/data/V2XEvent.h
"
10
11
namespace
carla
{
12
namespace
sensor {
13
namespace
s11n {
14
15
SharedPtr<SensorData>
CAMDataSerializer::Deserialize
(
RawData
&&data) {
16
return
SharedPtr<data::CAMEvent>
(
new
data::CAMEvent
(std::move(data)));
17
}
18
19
SharedPtr<SensorData>
CustomV2XDataSerializer::Deserialize
(
RawData
&&data) {
20
return
SharedPtr<data::CustomV2XEvent>
(
new
data::CustomV2XEvent
(std::move(data)));
21
}
22
23
}
// namespace s11n
24
}
// namespace sensor
25
}
// namespace carla
V2XEvent.h
V2XSerializer.h
carla::sensor::RawData
Wrapper around the raw data generated by a sensor plus some useful meta-information.
Definition
RawData.h:21
carla::sensor::data::CAMEvent
Definition
V2XEvent.h:18
carla::sensor::data::CustomV2XEvent
Definition
V2XEvent.h:37
carla::sensor::s11n::CAMDataSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition
V2XSerializer.cpp:15
carla::sensor::s11n::CustomV2XDataSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition
V2XSerializer.cpp:19
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
carla::SharedPtr
std::shared_ptr< T > SharedPtr
Definition
Memory.h:15
Generated by
1.9.8