// Copyright (c) 2019 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 . #pragma once #include "carla/Memory.h" #include "carla/geom/GeoLocation.h" #include "carla/rpc/ActorId.h" #include "carla/sensor/RawData.h" #include #include namespace carla { namespace sensor { class SensorData; namespace s11n { class GnssSerializer { public: static geom::GeoLocation DeserializeRawData(const RawData &message) { return MsgPack::UnPack(message.begin(), message.size()); } template static Buffer Serialize( const SensorT &, const geom::GeoLocation &geo_location ) { return MsgPack::Pack(geo_location); } static SharedPtr Deserialize(RawData &&data); }; } // namespace s11n } // namespace sensor } // namespace carla