From d3af176c862170ca366014994e487cc81330795a Mon Sep 17 00:00:00 2001
From: Melanie Carriere <melanie.carriere@kitware.com>
Date: Mon, 8 Jun 2020 12:21:23 +0200
Subject: [PATCH] Fix Lidar stream bug

Lidar data was not displayed anymore
With new LVCore LidarPort and GPSPort are no longer differenciated.
There is a unique Listening Port.
If we want to listen both Lidar and GPS data, we should open 2 streams
---
 Application/Ui/python/lidarview/applogic.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Application/Ui/python/lidarview/applogic.py b/Application/Ui/python/lidarview/applogic.py
index e48ec0af..a58a7bec 100644
--- a/Application/Ui/python/lidarview/applogic.py
+++ b/Application/Ui/python/lidarview/applogic.py
@@ -390,13 +390,13 @@ def openSensor():
     sensor.Interpreter = 'Velodyne Meta Interpreter'
     sensor.Interpreter.UseIntraFiringAdjustment = app.actions['actionIntraFiringAdjust'].isChecked()
 
-    sensor.GetClientSideObject().SetLidarPort(LidarPort)
+    sensor.ListeningPort = LidarPort
     sensor.GetClientSideObject().EnableGPSListening(True)
-    sensor.GetClientSideObject().SetGPSPort(GPSPort)
+    #sensor.GetClientSideObject().SetGPSPort(GPSPort)
     sensor.GetClientSideObject().SetForwardedGPSPort(GPSForwardingPort)
     sensor.GetClientSideObject().SetForwardedLidarPort(LIDARForwardingPort)
     sensor.GetClientSideObject().SetIsForwarding(isForwarding)
-    sensor.GetClientSideObject().SetIsCrashAnalysing(calibration.isCrashAnalysing)
+    sensor.SetIsCrashAnalysing(calibration.isCrashAnalysing)
     sensor.GetClientSideObject().SetForwardedIpAddress(ipAddressForwarding)
     sensor.Interpreter.GetClientSideObject().SetSensorTransform(sensorTransform)
     sensor.Interpreter.IgnoreZeroDistances = app.actions['actionIgnoreZeroDistances'].isChecked()
-- 
GitLab