Code Monkey home page Code Monkey logo

veloparser's Introduction

Veloparser

Veloparser is a simple application which does following:

  • Supports just Velodyne VLP16 at the moment.
  • Takes a pcap file recorded by Velodyne lidar as input.
  • Extracts all Frames from the pcap file.
  • Saves both data-frames and position-frames.
  • Data frames are saved as Point Clouds (.pcd) and/or as plain Text-File.
  • Position frames are saved only as Text-File
  • Converts frame's timestamps to GPS Week of Second format for synchronization with IMU/GNSS devices
  • Can be parameterizes by yaml file.

The reason why i wrote it, is simply that i could not find any simple way without installing ROS (Robot operating software) or other huge c++-based lib that does 'just' extract the point clouds and GPS-Timestamps from pcap-file.

Usage

Assuming using Anaconda python distribution:

~$ cd \path-to-veloparser-repo\
~/veloparser$ conda env create -f environment.yml
~/veloparser$ conda activate veloparser
~/veloparser$ python main.py -p /home/user/my.pcap -o /home/user/output_folder -c params.yaml

Note, the params.yaml can be updated according to your setup. For example, specifying whether GPS was available.

Dependencies

Veloparser has following package dependencies:

  • dpkt
  • numpy
  • tqdm
  • yaml

Please make sure that all of those packages are installed (pip or conda).

Output

Below a sample out of 2 Points in a point cloud file

Time [musec], X [m], Y [m], Z [m], ID, Intensity, Latitude [Deg], Longitudes [Deg], Distance [m] 2795827803, 0.032293, 5.781942, -1.549291, 0, 6, 0.320, -15.000, 5.986 2795827806, 0.083565, 14.399564, 0.251350, 1, 6, 0.333, 1.000, 14.402

All Point Cloud PCD-Files have following fields:

  1. X-Coordinate
  2. Y-Coordinate
  3. Z-Coordinate
  4. Intensity

They can also be opened and visualized with any point-cloud rendering software like (open3d, pcl, ...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.