26 class LidarSerializer;
27 class LidarHeaderView;
67 out <<
"property float32 x\n" \
68 "property float32 y\n" \
69 "property float32 z\n" \
89 virtual void ResetMemory(std::vector<uint32_t> points_per_channel) {
93 uint32_t total_points =
static_cast<uint32_t
>(
94 std::accumulate(points_per_channel.begin(), points_per_channel.end(), 0));
97 _points.reserve(total_points * 4);
113 static_assert(
sizeof(
LidarDetection) == 4u *
sizeof(
float),
"LidarDetection must be 4 packed floats");
114 static_assert(std::is_trivially_copyable<LidarDetection>::value,
"LidarDetection must be trivially copyable");
115 const float *
first =
reinterpret_cast<const float *
>(detections.data());
sensor::data::RadarDetection detection
#define DEBUG_ASSERT(predicate)
virtual void WritePointSync(SemanticLidarDetection &detection)
std::vector< float > _points
void WritePoints(const std::vector< LidarDetection > &detections)
virtual void ResetMemory(std::vector< uint32_t > points_per_channel)
LidarData & operator=(LidarData &&)=default
LidarData(uint32_t ChannelCount=0u)
void WritePointSync(LidarDetection &detection)
Helper class to store and serialize the data generated by a Lidar.
void WritePlyHeaderInfo(std::ostream &out) const
LidarDetection(float x, float y, float z, float intensity)
void WriteDetection(std::ostream &out) const
LidarDetection(geom::Location p, float intensity)
uint32_t GetChannelCount() const
std::vector< uint32_t > _header
Helper class to store and serialize the data generated by a RawLidar.
Serializes the data generated by Lidar sensors.
This file contains definitions of common data structures used in traffic manager.