From 64183b025a07d022c4529326ae609add5feb0c8a Mon Sep 17 00:00:00 2001 From: Daniel Santos-Olivan Date: Wed, 29 Jul 2020 11:36:33 +0200 Subject: [PATCH] Change of type to avoid windows error --- .../CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastLidar.cpp | 2 +- .../Plugins/Carla/Source/Carla/Sensor/RayCastRawLidar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastLidar.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastLidar.cpp index f2c4f54bc..12355dd2c 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastLidar.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastLidar.cpp @@ -117,7 +117,7 @@ ARayCastLidar::FDetection ARayCastLidar::ComputeDetection(const FHitResult& HitI } void ARayCastLidar::ComputeAndSaveDetections(const FTransform& SensorTransform) { - std::vector PointsPerChannel(Description.Channels); + std::vector PointsPerChannel(Description.Channels); for (auto idxChannel = 0u; idxChannel < Description.Channels; ++idxChannel) PointsPerChannel[idxChannel] = RecordedHits[idxChannel].size(); diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastRawLidar.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastRawLidar.cpp index 2ac905adf..e55e09566 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastRawLidar.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastRawLidar.cpp @@ -138,7 +138,7 @@ void ARayCastRawLidar::SimulateLidar(const float DeltaTime) } void ARayCastRawLidar::ComputeAndSaveDetections(const FTransform& SensorTransform) { - std::vector PointsPerChannel(Description.Channels); + std::vector PointsPerChannel(Description.Channels); for (auto idxChannel = 0u; idxChannel < Description.Channels; ++idxChannel) PointsPerChannel[idxChannel] = RecordedHits[idxChannel].size();