CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
sensor
Deserializer.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/Buffer.h
"
10
#include "
carla/Memory.h
"
11
12
namespace
carla
{
13
namespace
sensor
{
14
15
class
SensorData
;
16
17
/// Deserializes a Buffer containing data generated by a sensor and creates
18
/// the appropriate SensorData class that contains the sensor's measurement.
19
///
20
/// This class encapsulates the SensorRegistry to avoid including all the
21
/// serializers and SensorData classes.
22
class
Deserializer
{
23
public
:
24
25
static
SharedPtr<SensorData>
Deserialize
(
Buffer
&&buffer);
26
};
27
28
}
// namespace sensor
29
}
// namespace carla
Memory.h
Buffer.h
carla::Buffer
A piece of raw data.
Definition
carla/Buffer.h:42
carla::sensor::Deserializer
Deserializes a Buffer containing data generated by a sensor and creates the appropriate SensorData cl...
Definition
Deserializer.h:22
carla::sensor::Deserializer::Deserialize
static SharedPtr< SensorData > Deserialize(Buffer &&buffer)
Definition
Deserializer.cpp:14
carla::sensor::SensorData
Base class for all the objects containing data generated by a sensor.
Definition
SensorData.h:22
carla::sensor
Definition
client/detail/Client.h:58
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.18.0