32 return reinterpret_cast<const float &
>(
_begin[Index::HorizontalAngle]);
36 return _begin[Index::ChannelCount];
41 return _begin[Index::SIZE + channel];
71 template <
typename Sensor>
84 template <
typename Sensor>
89 std::array<boost::asio::const_buffer, 2u> seq = {
90 boost::asio::buffer(measurement.
_header),
93 return std::move(output);
#define DEBUG_ASSERT(predicate)
void copy_from(const T &source)
Copy source into this buffer. Allocates memory if necessary.
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.
std::vector< SemanticLidarDetection > _ser_points
std::vector< uint32_t > _header
Serializes the data generated by Lidar sensors.
static SharedPtr< SensorData > Deserialize(RawData &&data)
static Buffer Serialize(const Sensor &sensor, const data::SemanticLidarData &measurement, Buffer &&output)
static size_t GetHeaderOffset(const RawData &data)
static SemanticLidarHeaderView DeserializeHeader(const 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...