28 return MsgPack::UnPack<geom::GeoLocation>(message.
begin(), message.
size());
31 template <
typename SensorT>
static SharedPtr< SensorData > Deserialize(RawData &&data)
static Buffer Pack(const T &obj)
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
static Buffer Serialize(const SensorT &, const geom::GeoLocation &geo_location)
This file contains definitions of common data structures used in traffic manager. ...
auto begin() noexcept
Begin iterator to the data generated by the sensor.
size_t size() const
Size in bytes of the data generated by the sensor.
static geom::GeoLocation DeserializeRawData(const RawData &message)
Wrapper around the raw data generated by a sensor plus some useful meta-information.