CARLA
Deserializer.h
Go to the documentation of this file.
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
static SharedPtr< SensorData > Deserialize(Buffer &&buffer)
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
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:99
Deserializes a Buffer containing data generated by a sensor and creates the appropriate SensorData cl...
Definition: Deserializer.h:22
A piece of raw data.
Definition: carla/Buffer.h:39