From 0d6a2ea18401e1c60beb75f0c341d23927e15b07 Mon Sep 17 00:00:00 2001 From: Daniel Santos-Olivan Date: Tue, 7 Jul 2020 18:35:22 +0200 Subject: [PATCH] Added default constructor for LidarDetection --- LibCarla/source/carla/sensor/s11n/LidarMeasurement.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LibCarla/source/carla/sensor/s11n/LidarMeasurement.h b/LibCarla/source/carla/sensor/s11n/LidarMeasurement.h index 293c4ff5e..982972bfb 100644 --- a/LibCarla/source/carla/sensor/s11n/LidarMeasurement.h +++ b/LibCarla/source/carla/sensor/s11n/LidarMeasurement.h @@ -45,6 +45,8 @@ namespace s11n { geom::Location point; float intensity; + LidarDetection() : + point(0.0f, 0.0f, 0.0f), intensity{0.0f} { } LidarDetection(float x, float y, float z, float intensity) : point(x, y, z), intensity{intensity} { } LidarDetection(geom::Location p, float intensity) : @@ -65,7 +67,6 @@ namespace s11n { }; public: - explicit LidarMeasurement(uint32_t ChannelCount = 0u) : _header(Index::SIZE + ChannelCount, 0u) { _header[Index::ChannelCount] = ChannelCount;