CARLA
RadarMeasurement.h
Go to the documentation of this file.
1 // Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include "carla/Debug.h"
13 
14 namespace carla {
15 namespace sensor {
16 namespace data {
17 
18  /// Measurement produced by a Radar. Consists of an array of RadarDetection.
19  /// A RadarDetection contains 4 floats: velocity, azimuth, altitude and depth
20  class RadarMeasurement : public Array<data::RadarDetection> {
22  protected:
23 
25 
26  friend Serializer;
27 
29  : Super(0u, std::move(data)) {}
30 
31  public:
32 
34  return Super::size();
35  }
36  };
37 
38 } // namespace data
39 } // namespace sensor
40 } // namespace carla
Measurement produced by a Radar.
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
Super::size_type GetDetectionAmount() const
Base class for all the sensor data consisting of an array of items.
Definition: Array.h:23
Serializes the data generated by Radar sensors.
Wrapper around the raw data generated by a sensor plus some useful meta-information.
Definition: RawData.h:21