// Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see . #pragma once #include "carla/Debug.h" #include "carla/sensor/data/Array.h" #include "carla/sensor/s11n/RadarSerializer.h" #include "carla/sensor/data/RadarData.h" namespace carla { namespace sensor { namespace data { /// Measurement produced by a Radar. Consists of an array of RadarDetection. /// A RadarDetection contains 4 floats: velocity, azimuth, altitude and depth class RadarMeasurement : public Array { using Super = Array; protected: using Serializer = s11n::RadarSerializer; friend Serializer; explicit RadarMeasurement(RawData &&data) : Super(0u, std::move(data)) {} public: Super::size_type GetDetectionAmount() const { return Super::size(); } }; } // namespace data } // namespace sensor } // namespace carla