Decoder for raw Velodyne packet data
Project description
velodyne_decoder

Python package and C++ library for Velodyne packet decoding. Intended as a light-weight substitute for velodyne_driver in ROS with minimal external dependencies.
The resulting decoded data is provided as a structured NumPy array in Python and an array of structs in C++.
array([(8.327308, -2.161341, 0.3599853, 85., 17, -0.04960084),
(8.323784, -2.9578836, 0.27016047, 102., 15, -0.04959854),
(8.184404, -2.845847, -0.8741639, 39., 2, -0.04959623), ...,
(8.369528, -2.8161895, 2.307987, 17., 31, 0.00064051),
(8.377898, -3.2570598, 1.7714221, 104., 30, 0.00064282),
(8.358282, -2.8030438, 0.31229734, 104., 16, 0.00064282)],
dtype={'names': ['x', 'y', 'z', 'intensity', 'ring', 'time'],
'formats': ['<f4', '<f4', '<f4', '<f4', '<u2', '<f4'], 'offsets': [0, 4, 8, 16, 20, 24], 'itemsize': 32})
The layout of the structs and the array is identical to the PointXYZIRT point clouds output by the ROS driver.
Installation
Wheels are available from PyPI for Linux, MacOS and Windows. Python versions 2.7 and 3.6+ are supported.
pip install velodyne-decoder
Alternatively, you can build and install the development version from source.
sudo apt-get install cmake build-essential python3-dev
pip install git+https://github.com/valgur/velodyne_decoder.git
Usage
Decoding Velodyne data from a ROS bag
from rosbag import Bag
import velodyne_decoder as vd
config = vd.Config()
config.model = '32C'
config.calibration_file = '/opt/ros/noetic/share/velodyne_pointcloud/params/VeloView-VLP-32C.yaml'
config.min_range = 0.3
config.max_range = 130
decoder = vd.ScanDecoder(config)
bagfile = 'xyz.bag'
lidar_topics = ['/velodyne_packets']
cloud_arrays = []
with Bag(bagfile) as bag:
for topic, scan_msg, ros_time in bag.read_messages(lidar_topics):
cloud_arrays.append(decoder.decode_message(scan_msg))
config.model and config.calibration_file are required. For a list of supported model IDs see
>> > velodyne_decoder.Config.SUPPORTED_MODELS
['VLP16', '32C', '32E', 'VLS128']
For the calibration file you can use the one provided with the velodyne driver matching your model.
Additional optional config parameters are min_range and max_range in meters and min_angle and max_angle in
degrees.
Authors
- Martin Valgur (@valgur) – this library.
The core functionality has been adapted from the ROS velodyne driver.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file velodyne-decoder-1.0.1.tar.gz.
File metadata
- Download URL: velodyne-decoder-1.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f41ff6df2a9ec793f8f72742c58826bb1a05096c5cf9dad02f235dab82f6b8b
|
|
| MD5 |
ef29da56cd02a759c7d71bb5787a0f13
|
|
| BLAKE2b-256 |
b74139c937ed7d089b6f418c19f225748a9b6b25922473e8ec4bde5f27a57f13
|
File details
Details for the file velodyne_decoder-1.0.1-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 174.6 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8062213c23cb10ee3b268cdf1dadb9334b774dffb2f648a363cd00f3bfca08b2
|
|
| MD5 |
ffc9350f8cdb772550b6c7bbf207b77d
|
|
| BLAKE2b-256 |
01380c3404edcecfe5da51f4f670e8470e37a06dc0336f8a1ddcce81e55d2e8e
|
File details
Details for the file velodyne_decoder-1.0.1-cp39-cp39-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 339.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
776c22c0f1d18368e844a6cfd4d31dd40e1319fc4018508e115ddf28bcbf2d47
|
|
| MD5 |
b80ae1567819ab79957f6fc79d4817b9
|
|
| BLAKE2b-256 |
8cca32a2f78d722db0e9fc8be93a9e999ecf37c08853034a27cfdd1be58e4ab3
|
File details
Details for the file velodyne_decoder-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 219.9 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5444044639475942b5edaedb7a799d3ca7958fad80547acdec0de9293368bd6f
|
|
| MD5 |
219824243f4b82c6f1ed818afb80900a
|
|
| BLAKE2b-256 |
94c23fd62e98fe68584a4aa57d9d738cecf22374f5aa08665968d9d0b4656a30
|
File details
Details for the file velodyne_decoder-1.0.1-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 177.2 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f175dcf8519e6e58c2a8c8549a8b2d17c6add6ac30bb5459bcdaa5e29d5617ee
|
|
| MD5 |
ac8e3f3876fc79348c92f768f9354c43
|
|
| BLAKE2b-256 |
8047fe8faeff0dc1f62abd8fa6b6539f4f5036fed20f473e4607789e9ff57e8a
|
File details
Details for the file velodyne_decoder-1.0.1-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 339.2 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36a9d9dfbcc8440a06debb870010cdc509e832640d9d78016633e619d45ff6e5
|
|
| MD5 |
5bd6cb333627edcbd07ea2a398059d22
|
|
| BLAKE2b-256 |
db5a88a24b6e7f20c22e5583585b4ac4ba629486f3fe40e6fadcd0b24fb9ff1d
|
File details
Details for the file velodyne_decoder-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 219.9 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e4f0b19f1194eb404c5c096ba0710cade5632183c560abac48edd67f7d67638
|
|
| MD5 |
4e5900d68da54147833ee5ac1bbbea3a
|
|
| BLAKE2b-256 |
0f7d8ced8af0ea990db131dc0e3b038e41ce8c3d02f7168b2e94c06732f3756e
|
File details
Details for the file velodyne_decoder-1.0.1-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 177.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32afeef439bd62f3047ced5d01b76708ce4629250f41e9171bba9326ce6edc99
|
|
| MD5 |
deec1cba70ad5d9c3e4146774d0702be
|
|
| BLAKE2b-256 |
e059a8f4a56f9e9bf80ae21b07f2a31fa18e69811f8ef1a5fee46102491f25c7
|
File details
Details for the file velodyne_decoder-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 341.4 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a50cbdfd18b638883d899c81f014eee3b25b77afb0cde12dcbb87439da206b7
|
|
| MD5 |
5938000d546bb6005ee6ad5b3c800af6
|
|
| BLAKE2b-256 |
2316629b5bdb07cbef1c78680b7ad0a84e9953fe3c8047a897f2979f9844df0b
|
File details
Details for the file velodyne_decoder-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 218.5 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d21f033dffa25ee71cd88567312abe2a1849359ea08a76e1bd0c4ba489b0eaf0
|
|
| MD5 |
0f2ac4b22de2805aebb2c7b2d00a232b
|
|
| BLAKE2b-256 |
88f3ea24b08a8c48bcf9611b1dbd2529d185017808342a0ff57b708e3fc56750
|
File details
Details for the file velodyne_decoder-1.0.1-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 177.8 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16fcb087ceeab58ef78a6b9b6aebe4c0fab047294e72b1e1cbecfc5457d8d509
|
|
| MD5 |
9dac134fc2ea79199f05e2940d217c93
|
|
| BLAKE2b-256 |
dbe22cbbfb5783e2f2c4bf45dc671cb7bcd513bac129a4e5766aab2192c9c758
|
File details
Details for the file velodyne_decoder-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 341.4 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ecc1f896ba21445765c947bffe88d05db1ebdf036c82dbbee94795b1c6cb332
|
|
| MD5 |
ac4966e2abf49b28393c9dd1f023db2b
|
|
| BLAKE2b-256 |
80af1fbf36f9b8c42c82ed5c98e78d64a1e054eb0fbd24ba136bd84565a78ca9
|
File details
Details for the file velodyne_decoder-1.0.1-cp36-cp36m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 218.5 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71f2c1329e3b26909cf8553d16d9dfaa53cd6249b9498416c981d8911460e8d2
|
|
| MD5 |
6c9acfe948c2a31ed786e42a3bd9f93c
|
|
| BLAKE2b-256 |
026ac7e81fed9648dc272dc6312cbe0d5e6724abfcd09b95baa46e7b180c3c9f
|
File details
Details for the file velodyne_decoder-1.0.1-cp35-cp35m-win_amd64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 177.8 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
727567099a0e13d14b8ff45afd67510ab009fd9409688c284bfc48b6b6468437
|
|
| MD5 |
84c13a66abcd37daf3330649a77e76d0
|
|
| BLAKE2b-256 |
af5b9001c0be5a7460d630e4f46296c60e4b6a960c888339791d3b3add2a6588
|
File details
Details for the file velodyne_decoder-1.0.1-cp35-cp35m-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp35-cp35m-manylinux2010_x86_64.whl
- Upload date:
- Size: 341.3 kB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ddeb760ed9849e1b86f51d8cda1de85e0fb56ac9d9c8a9fa7d4426cc8419a32
|
|
| MD5 |
04dffc15a49e4ff835bd3c28e011aa27
|
|
| BLAKE2b-256 |
c7984036f3994a463f99147068ff53af0e3b36498c10922881878ed7a68a7304
|
File details
Details for the file velodyne_decoder-1.0.1-cp35-cp35m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp35-cp35m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 218.5 kB
- Tags: CPython 3.5m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73c054f2f7b4129b8ea164232d0d0dcba14522c1a6b33a6f142bcfe109e4518c
|
|
| MD5 |
74f82e1afcaf811483b5f65b3774cd2f
|
|
| BLAKE2b-256 |
0a1efe137732a8745b91669d0b504c2867ecc831fa8788e7b1877a52e81f7893
|
File details
Details for the file velodyne_decoder-1.0.1-cp27-cp27mu-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp27-cp27mu-manylinux2010_x86_64.whl
- Upload date:
- Size: 342.3 kB
- Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de78d41d95939fcc5bfdaa2239b9ed81413fde9d7d4767f470a0af98d3ac0309
|
|
| MD5 |
b4d6e9342f00c7f0febafed418738823
|
|
| BLAKE2b-256 |
1aa51abf8dc578f7726e54cfe8a982ef5f686525f5f2643f90f081a26b1e19b6
|
File details
Details for the file velodyne_decoder-1.0.1-cp27-cp27m-win_amd64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp27-cp27m-win_amd64.whl
- Upload date:
- Size: 178.7 kB
- Tags: CPython 2.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaaf31e023c8b728032e969a371f8d5e21b0c56ec9280bfbeff53ca2741beaff
|
|
| MD5 |
b689157eb9619c6212d59ab92af7b5fc
|
|
| BLAKE2b-256 |
a478a9bb77846d48499f6ca736cf847392810e4f31d2c12e4edac621ef418254
|
File details
Details for the file velodyne_decoder-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl
- Upload date:
- Size: 342.2 kB
- Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3161e3ac1f6ceb5e2cec675a178c0ce98b7832cc752e6fb48a65e8d3a395da23
|
|
| MD5 |
1c83e90ecdab315cbf3c931f696ca992
|
|
| BLAKE2b-256 |
896fc188ef7579cd375811b7b0d808f824adbe3e8a584156e41973683e33bed3
|
File details
Details for the file velodyne_decoder-1.0.1-cp27-cp27m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: velodyne_decoder-1.0.1-cp27-cp27m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 219.1 kB
- Tags: CPython 2.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91f3dd4fadc6e372f4ed2b68fb4bd0047cd2d896d28770c02dcfe055cb36a8bd
|
|
| MD5 |
5315db40edd273a7a660b2d5a3fab0b3
|
|
| BLAKE2b-256 |
d67f793ba87e493225b5b68b01f14fe64c4489d6ddf9e4b6fa5d19bbcd211493
|