24 class SemanticLidarSerializer;
25 class SemanticLidarHeaderView;
71 out <<
"property float32 x\n" \
72 "property float32 y\n" \
73 "property float32 z\n" \
74 "property float32 CosAngle\n" \
75 "property uint32 ObjIdx\n" \
76 "property uint32 ObjTag";
87 static_assert(
sizeof(float) ==
sizeof(uint32_t),
"Invalid float size");
118 virtual void ResetMemory(std::vector<uint32_t> points_per_channel) {
122 uint32_t total_points =
static_cast<uint32_t
>(
123 std::accumulate(points_per_channel.begin(), points_per_channel.end(), 0));
130 for (
auto idxChannel = 0u; idxChannel <
GetChannelCount(); ++idxChannel)
#define DEBUG_ASSERT(predicate)
virtual void WriteChannelCount(std::vector< uint32_t > points_per_channel)
float GetHorizontalAngle() const
std::vector< SemanticLidarDetection > _ser_points
virtual void ResetMemory(std::vector< uint32_t > points_per_channel)
SemanticLidarData & operator=(SemanticLidarData &&)=default
SemanticLidarData(uint32_t ChannelCount=0u)
uint32_t GetChannelCount() const
void SetHorizontalAngle(float angle)
virtual void WritePointSync(SemanticLidarDetection &detection)
std::vector< uint32_t > _header
uint32_t _max_channel_points
virtual ~SemanticLidarData()
Helper class to store and serialize the data generated by a RawLidar.
SemanticLidarDetection(float x, float y, float z, float cosTh, uint32_t idx, uint32_t tag)
void WriteDetection(std::ostream &out) const
void WritePlyHeaderInfo(std::ostream &out) const
SemanticLidarDetection(geom::Location p, float cosTh, uint32_t idx, uint32_t tag)
SemanticLidarDetection()=default
Serializes the data generated by Lidar sensors.
This file contains definitions of common data structures used in traffic manager.