Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.26 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.26 KB

GNSS-Parser-Reproducer

This project is designed to record and replay GNSS serial data, specifically handling NMEA and UBX messages.

It consists of three main scripts: record/src/record.py, replay/src/replay.py, and replay/src/serial_emulator.py.

Features

  • serial_emulator.py: Emulates a serial device using socat.
  • record.py: Reads data from a serial device and saves it to a JSON file.
  • replay.py: Reads data from a JSON file and writes it to a serial device and, if desired, it displays a GUI to visualize the vehicle.
  • decoded_messages: Decodes NMEA messages to extract latitude, longitude, and heading of vehicle for the GUI.

Requirements

  • Python 3.x
  • pyserial
  • socat (for serial emulation)
  • nodejs (for the GUI mode)

Installation

  1. Clone the repository:

    git clone https://github.com/Diegomangasco/GNSS-Parser-Reproducer.git
    cd GNSS-Parser-Reproducer
  2. Install the required Python packages:

    pip install pyserial
  3. Ensure socat is installed on your system:

    sudo apt-get install socat
  4. Ensure nodejs is installed on your system:

    sudo apt install nodejs
  1. Install the npm packages:
    cd replay/vehicle_visualizer
    npm install