CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
sensor
Deserializer.h
浏览该文件的文档.
1
// Copyright (c) 2017 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
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