32 return reinterpret_cast<const float &
>(
_begin[Index::HorizontalAngle]);
36 return _begin[Index::ChannelCount];
67 auto View = DeserializeHeader(data);
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);
static const FString SIZE
static Buffer Serialize(const Sensor &sensor, const data::SemanticLidarData &measurement, Buffer &&output)
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. ...
std::vector< SemanticLidarDetection > _ser_points
auto begin() noexcept
Begin iterator to the data generated by the sensor.
#define DEBUG_ASSERT(predicate)
Serializes the data generated by Lidar sensors.
std::vector< uint32_t > _header
static size_t GetHeaderOffset(const RawData &data)
static SemanticLidarHeaderView DeserializeHeader(const RawData &data)
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.