22 class RadarSerializer;
35 static_assert(
sizeof(
float) ==
sizeof(uint32_t),
"Invalid float size");
36 static_assert(
sizeof(
float) * 4 ==
sizeof(
RadarDetection),
"Invalid RadarDetection size");
52 _detections.shrink_to_fit();
54 _detections.reserve(resolution);
59 return _detections.size();
70 _detections.push_back(detection);
size_t GetDetectionCount() const
Returns the number of current detections.
This file contains definitions of common data structures used in traffic manager. ...
void SetResolution(uint32_t resolution)
Set a new resolution for the RadarData.
void WriteDetection(RadarDetection detection)
Adds a new detection.
std::vector< RadarDetection > _detections
Serializes the data generated by Radar sensors.
void Reset()
Deletes the current detections.