17 class RadarSerializer;
30 static_assert(
sizeof(
float) ==
sizeof(uint32_t),
"Invalid float size");
31 static_assert(
sizeof(
float) * 4 ==
sizeof(
RadarDetection),
"Invalid RadarDetection size");
47 _detections.shrink_to_fit();
49 _detections.reserve(resolution);
54 return _detections.size();
65 _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.