libcarla/include/carla/sensor/Deserializer.h
2024-10-18 13:19:59 +08:00

30 lines
778 B
C++

// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#pragma once
#include "carla/Buffer.h"
#include "carla/Memory.h"
namespace carla {
namespace sensor {
class SensorData;
/// Deserializes a Buffer containing data generated by a sensor and creates
/// the appropriate SensorData class that contains the sensor's measurement.
///
/// This class encapsulates the SensorRegistry to avoid including all the
/// serializers and SensorData classes.
class Deserializer {
public:
static SharedPtr<SensorData> Deserialize(Buffer &&buffer);
};
} // namespace sensor
} // namespace carla