Are you using the Jetson device for any other application?. What Jetson device are you using? I am not sure I understand your objective. I am assuming you have a computer vision application and you want to align each inference (Detection) with a GPS coordinate, is it correct? Most GPS units use UART, Lets suppose you are using Jetson Nano. Let me know if you need help connecting the module 9What GPS module are you using?). Now, let's say you are using Adafruit (Ultimate Breakout v3) GPS module.
On Jeston nano you can use the built in UART via
/dev/ttyTHS1
Wire the GPS as follows:
1-
- Connect the Jetson Nano +3.3V pin to the Vin pin on the GPS.
- Connect the Jetson Nano Ground pin to the GPS Ground pin.
- Connect the Jetson Nano UART TX (#8) to the GPS RX pin.
- Connect the Jetson Nano UART RX (#10) to the GPS TX pin.
The next step and for this specific example (GPS module), you need to install the Adafruit GPS CircuitPython library. Now that you have your GPS module installed properly, I strongly recommend to use Nvidia Deepstream, you should be able to use GPS data as part of the configuration file. Look at gie-kitti-output-dir
(never done this but based on the documentation, I will assume that's the way).
Deepstream has a specific plugins: The Message Converter Gst-nvmsgconv
and Message Broker Gst-nvmsgbroker
plugins in combination to send analytics data to a server in the Cloud. In my view it's the best way to do it, Deepstream provides some good example apps. I hope my answer will give you some ideas. Good luck.