# LidarView not recognizing GPS data

**URL:** https://discourse.paraview.org/t/lidarview-not-recognizing-gps-data/14029
**Category:** LidarView, Lidar, and SLAM
**Created:** [February 27, 2024, 12:18am UTC](https://discourse.paraview.org/t/lidarview-not-recognizing-gps-data/14029 "2024-02-27T00:18:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![baldpixels](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/65b543/32.png) [@baldpixels](https://discourse.paraview.org/u/baldpixels)
#### Post date: [February 27, 2024, 12:18am UTC](https://discourse.paraview.org/t/lidarview-not-recognizing-gps-data/14029/1 "2024-02-27T00:18:27Z")

</div>

Hello!

I could use some help figuring out why LidarView is not recognizing GPS data contained in a .pcap file.

**CONFIGURATION**  
The .pcap file was generated by a Velodyne VLP-16. The GPS used is a Garmin 18x LVC. The unit was configured according to the VLP-16 user manual. A Raspberry Pi is used to receive and store the .pcap file while the system is in flight.

**ISSUE**  
During a test flight, the LiDAR data and the GPS data were successfully recorded as a .pcap file, but the GPS packet is not being recognized in LidarView.

Here are some screenshots demonstrating the issue…

**Screenshot 1:** When opening the .pcap file in LidarView, the “Enable interpreting GPS packets” option is selected and the GPS port is kept as 8308.

 ![Screenshot 1 - Configuration](https://discourse.paraview.org/uploads/default/original/2X/9/9497ff28cd5bda0892a29073f31b25c1421c60ea.png)

**Screenshot 2:** After the .pcap is opened, the PositionOrientation data is still empty (as shown in the Spreadsheet view.)

 ![Screenshot 2 - PositionOrientation Raw Information](https://discourse.paraview.org/uploads/default/original/2X/6/6048d56073f6f011d69680eeff2f7b17fe9dc620.png)

**Screenshot 3:** If the same .pcap file is opened in Wireshark, the GPS packets can be seen and the NMEA sentence can be read. _This confirms that the .pcap file contains the GPS data._

 ![Screenshot 3 - GPS Packet in Wireshark](https://discourse.paraview.org/uploads/default/original/2X/1/153df8fc31b6c204f4f837b5cb78ed71a33481bc.png)

So clearly, the GPS data has been recorded, but it seems like LidarView is not recognizing it. Thus, our LiDAR data cannot being geolocated.

Am I correct in thinking that the PositionOrientationReader should read the GPS packets in the .pcap file and interpret this data as the location of the LiDAR sensor?

Any help would be greatly appreciated! I am relatively new to LiDAR and ParaView, but I am eager to learn.

Thank you,

---

<div class="post-metadata">

### Author: ![Gatien\_Ferret](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gatien_ferret/32/9789_2.png) [@Gatien\_Ferret](https://discourse.paraview.org/u/Gatien_Ferret)
#### Post date: [February 27, 2024, 9:17am UTC](https://discourse.paraview.org/t/lidarview-not-recognizing-gps-data/14029/2 "2024-02-27T09:17:20Z")

</div>

Hi @baldpixels, I cannot see any obvious mistake in what you have shown here, the data does indeed seem to be present and apparently correctly formatted.

Though it should be present in the Row data of the Position Orientation Reader ( but as it is the default view, you should have seen it if it was there)

Which LidarView version are you using ?  
And would you be able to share your pcap file ( even a small portion of it ) ?

---

<div class="post-metadata">

### Author: ![baldpixels](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/65b543/32.png) [@baldpixels](https://discourse.paraview.org/u/baldpixels)
#### Post date: [February 28, 2024, 1:45am UTC](https://discourse.paraview.org/t/lidarview-not-recognizing-gps-data/14029/3 "2024-02-28T01:45:10Z")

</div>

Hi Gatien,

Thanks for your reply!

I am using version 4.5.0 of LidarView. Here are a few frames from the .pcap file:  
[2024-02-11\_145327 (Frame 528 to 548).pcap](https://discourse.paraview.org/uploads/short-url/cRgl3tWMaLS6D88oH4zK7EiKDmP.pcap) (2.1 MB)

---

<div class="post-metadata">

### Author: ![Gatien\_Ferret](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gatien_ferret/32/9789_2.png) [@Gatien\_Ferret](https://discourse.paraview.org/u/Gatien_Ferret)
#### Post date: [February 29, 2024, 4:35pm UTC](https://discourse.paraview.org/t/lidarview-not-recognizing-gps-data/14029/4 "2024-02-29T16:35:23Z")

</div>

Hi @baldpixels , thanks for the recording. This actually highlight a bug occuring when no system mode indicator information is present in the GPS data with GPRMC ( but actually due to a wrong seperation of the checksum in the NMEA sentence parsing ) .

This is under fix in this merge request [https://gitlab.kitware.com/LidarView/lidarview-core/-/merge\_requests/485](https://gitlab.kitware.com/LidarView/lidarview-core/-/merge_requests/485)

More info on GPRMC format [here](https://www.rfwireless-world.com/Terminology/GPS-sentences-or-NMEA-sentences.html)

Though, according to the [Garmin Spec](https://static.garmin.com/pumac/GPS_18x_Tech_Specs.pdf), it seems this data should be present.

Please note though, LidarView does not handle georeferencing LiDAR from GPS reading for now, it only sets the read GPS data in the local coordinates (which in the case of your pcap extract stays equal to 0 as the GPS data is constant).  
But this is something that could be developped by taking as input the output of SLAM (which can ingest GPS data in the form of output files for now, but live connection could also be possible) and GPS position ( assuming a known initial altitude and rotation matrix for the point cloud, which could be partly solved if a heading signal is available )
