35 template <
typename SensorT>
37 const SensorT &sensor,
43 return MsgPack::UnPack<Data>(message.
begin(), message.
size());
49 template <
typename SensorT>
54 const float compass) {
static Buffer Pack(const T &obj)
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.
size_t size() const
Size in bytes of the data generated by the sensor.
static Buffer Serialize(const SensorT &sensor, const geom::Vector3D &accelerometer, const geom::Vector3D &gyroscope, const float compass)
static SharedPtr< SensorData > Deserialize(RawData &&data)
static Data DeserializeRawData(const RawData &message)
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...
geom::Vector3D accelerometer