Helper class to store and serialize the data generated by a RawLidar. More...
#include <SemanticLidarData.h>
Public Member Functions | |
SemanticLidarDetection ()=default | |
SemanticLidarDetection (float x, float y, float z, float cosTh, uint32_t idx, uint32_t tag) | |
SemanticLidarDetection (geom::Location p, float cosTh, uint32_t idx, uint32_t tag) | |
void | WriteDetection (std::ostream &out) const |
void | WritePlyHeaderInfo (std::ostream &out) const |
Public Attributes | |
float | cos_inc_angle {} |
uint32_t | object_idx {} |
uint32_t | object_tag {} |
geom::Location | point {} |
Helper class to store and serialize the data generated by a RawLidar.
The header of a Lidar measurement consists of an array of uint32_t's in the following layout
{ Horizontal angle (float), Channel count, Point count of channel 0, ... Point count of channel n, }
The points are stored in an array of detections, each detection consist in four floats, the point detected and the angle between the casted ray and the normal of the hitted object, and two unsigned integers, the index and the semantic tag of the hitted object
{ X0, Y0, Z0, Cos(TH0), idx_0, tag_0 ... Xn, Yn, Zn, Cos(THn), idx_n, tag_n }
Definition at line 51 of file SemanticLidarData.h.
|
default |
|
inline |
Definition at line 60 of file SemanticLidarData.h.
|
inline |
Definition at line 62 of file SemanticLidarData.h.
|
inline |
Definition at line 74 of file SemanticLidarData.h.
|
inline |
Definition at line 65 of file SemanticLidarData.h.
float carla::sensor::data::SemanticLidarDetection::cos_inc_angle {} |
Definition at line 54 of file SemanticLidarData.h.
Referenced by ARayCastSemanticLidar::ComputeRawDetection().
uint32_t carla::sensor::data::SemanticLidarDetection::object_idx {} |
Definition at line 55 of file SemanticLidarData.h.
Referenced by ARayCastSemanticLidar::ComputeRawDetection().
uint32_t carla::sensor::data::SemanticLidarDetection::object_tag {} |
Definition at line 56 of file SemanticLidarData.h.
Referenced by ARayCastSemanticLidar::ComputeRawDetection().
geom::Location carla::sensor::data::SemanticLidarDetection::point {} |
Definition at line 53 of file SemanticLidarData.h.
Referenced by ARayCastLidar::ComputeIntensity(), and ARayCastSemanticLidar::ComputeRawDetection().