35 MSGPACK_DEFINE_ARRAY(self_actor, other_actor, normal_impulse)
41 return MsgPack::UnPack<Data>(message.
begin(), message.
size());
44 template <
typename SensorT>
static Buffer Pack(const T &obj)
static Data DeserializeRawData(const RawData &message)
geom::Vector3D normal_impulse
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
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 constexpr auto header_offset
size_t size() const
Size in bytes of the data generated by the sensor.
static Buffer Serialize(const SensorT &, rpc::Actor self_actor, rpc::Actor other_actor, geom::Vector3D normal_impulse)
static SharedPtr< SensorData > Deserialize(RawData &&data)
Serializes the current state of the whole episode.
Wrapper around the raw data generated by a sensor plus some useful meta-information.