49 return *
reinterpret_cast<const Header *
>(message.
begin());
52 template <
typename SensorT>
54 return std::move(buffer);
Serializes the current state of the whole episode.
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
static constexpr auto header_offset
This file contains definitions of common data structures used in traffic manager. ...
auto begin() noexcept
Begin iterator to the data generated by the sensor.
static Buffer Serialize(const SensorT &, Buffer &&buffer)
static SharedPtr< SensorData > Deserialize(RawData &&data)
static const Header & DeserializeHeader(const RawData &message)
Wrapper around the raw data generated by a sensor plus some useful meta-information.