25 static_assert(
sizeof(data::LidarDetection) == 4u *
sizeof(
float),
"Location size missmatch");
73 return GetHeader().GetPointCount(channel);
包装一个传感器生成的原始数据以及一些有用的元信息。
const RawData & GetRawData() const
Measurement produced by a Lidar.
auto GetPointCount(size_t channel) const
Retrieve the number of points that channel generated.
auto GetHorizontalAngle() const
Horizontal angle of the Lidar at the time of the measurement.
auto GetChannelCount() const
Number of channels of the Lidar.
LidarMeasurement(RawData &&data)
Serializes the data generated by Lidar sensors.
static LidarHeaderView DeserializeHeader(const RawData &data)
static size_t GetHeaderOffset(const RawData &data)