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