CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
sensor
s11n
V2XSerializer.cpp
浏览该文件的文档.
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
#include "
carla/sensor/s11n/V2XSerializer.h
"
8
9
#include "
carla/sensor/data/V2XEvent.h
"
10
11
namespace
carla
12
{
13
namespace
sensor
14
{
15
namespace
s11n
16
{
17
18
SharedPtr<SensorData>
CAMDataSerializer::Deserialize
(
RawData
&&data)
19
{
20
return
SharedPtr<data::CAMEvent>
(
new
data::CAMEvent
(std::move(data)));
21
}
22
23
SharedPtr<SensorData>
CustomV2XDataSerializer::Deserialize
(
RawData
&&data)
24
{
25
return
SharedPtr<data::CustomV2XEvent>
(
new
data::CustomV2XEvent
(std::move(data)));
26
}
27
28
}
// namespace s11n
29
}
// namespace sensor
30
}
// 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:22
carla::sensor::data::CustomV2XEvent
Definition
V2XEvent.h:41
carla::sensor::s11n::CAMDataSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition
V2XSerializer.cpp:18
carla::sensor::s11n::CustomV2XDataSerializer::Deserialize
static SharedPtr< SensorData > Deserialize(RawData &&data)
Definition
V2XSerializer.cpp:23
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
carla::SharedPtr
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
Definition
Memory.h:20
制作者
1.10.0