Skip to main content

velodyne_decoder PyPI Build

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

BSD 3-Clause License

Release files for velodyne-decoder 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for velodyne-decoder 1.0.1
File Size Uploaded
velodyne-decoder-1.0.1.tar.gz 5.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for velodyne-decoder 1.0.1
File
velodyne_decoder-1.0.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
velodyne_decoder-1.0.1-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
velodyne_decoder-1.0.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
velodyne_decoder-1.0.1-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details
velodyne_decoder-1.0.1-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
velodyne_decoder-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details
velodyne_decoder-1.0.1-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
velodyne_decoder-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp36-cp36m-macosx_10_9_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64 Details
velodyne_decoder-1.0.1-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
velodyne_decoder-1.0.1-cp35-cp35m-manylinux2010_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp35-cp35m-macosx_10_9_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.9+ x86-64 Details
velodyne_decoder-1.0.1-cp27-cp27mu-manylinux2010_x86_64.whl CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
velodyne_decoder-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.12+ x86-64 Details
velodyne_decoder-1.0.1-cp27-cp27m-macosx_10_9_x86_64.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.9+ x86-64 Details

Total release size: 4.8 MB

Release files / velodyne-decoder-1.0.1.tar.gz

Download URL velodyne-decoder-1.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f41ff6df2a9ec793f8f72742c58826bb1a05096c5cf9dad02f235dab82f6b8b
BLAKE2b-256 checksum
How to use checksums
b74139c937ed7d089b6f418c19f225748a9b6b25922473e8ec4bde5f27a57f13
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp39-cp39-win_amd64.whl

Download URL velodyne_decoder-1.0.1-cp39-cp39-win_amd64.whl
Size 174.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
8062213c23cb10ee3b268cdf1dadb9334b774dffb2f648a363cd00f3bfca08b2
BLAKE2b-256 checksum
How to use checksums
01380c3404edcecfe5da51f4f670e8470e37a06dc0336f8a1ddcce81e55d2e8e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp39-cp39-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp39-cp39-manylinux2010_x86_64.whl
Size 339.5 kB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
776c22c0f1d18368e844a6cfd4d31dd40e1319fc4018508e115ddf28bcbf2d47
BLAKE2b-256 checksum
How to use checksums
8cca32a2f78d722db0e9fc8be93a9e999ecf37c08853034a27cfdd1be58e4ab3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Size 219.9 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
5444044639475942b5edaedb7a799d3ca7958fad80547acdec0de9293368bd6f
BLAKE2b-256 checksum
How to use checksums
94c23fd62e98fe68584a4aa57d9d738cecf22374f5aa08665968d9d0b4656a30
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp38-cp38-win_amd64.whl

Download URL velodyne_decoder-1.0.1-cp38-cp38-win_amd64.whl
Size 177.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
f175dcf8519e6e58c2a8c8549a8b2d17c6add6ac30bb5459bcdaa5e29d5617ee
BLAKE2b-256 checksum
How to use checksums
8047fe8faeff0dc1f62abd8fa6b6539f4f5036fed20f473e4607789e9ff57e8a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp38-cp38-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp38-cp38-manylinux2010_x86_64.whl
Size 339.2 kB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
36a9d9dfbcc8440a06debb870010cdc509e832640d9d78016633e619d45ff6e5
BLAKE2b-256 checksum
How to use checksums
db5a88a24b6e7f20c22e5583585b4ac4ba629486f3fe40e6fadcd0b24fb9ff1d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Size 219.9 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3e4f0b19f1194eb404c5c096ba0710cade5632183c560abac48edd67f7d67638
BLAKE2b-256 checksum
How to use checksums
0f7d8ced8af0ea990db131dc0e3b038e41ce8c3d02f7168b2e94c06732f3756e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp37-cp37m-win_amd64.whl

Download URL velodyne_decoder-1.0.1-cp37-cp37m-win_amd64.whl
Size 177.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
32afeef439bd62f3047ced5d01b76708ce4629250f41e9171bba9326ce6edc99
BLAKE2b-256 checksum
How to use checksums
e059a8f4a56f9e9bf80ae21b07f2a31fa18e69811f8ef1a5fee46102491f25c7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Size 341.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
1a50cbdfd18b638883d899c81f014eee3b25b77afb0cde12dcbb87439da206b7
BLAKE2b-256 checksum
How to use checksums
2316629b5bdb07cbef1c78680b7ad0a84e9953fe3c8047a897f2979f9844df0b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Size 218.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d21f033dffa25ee71cd88567312abe2a1849359ea08a76e1bd0c4ba489b0eaf0
BLAKE2b-256 checksum
How to use checksums
88f3ea24b08a8c48bcf9611b1dbd2529d185017808342a0ff57b708e3fc56750
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp36-cp36m-win_amd64.whl

Download URL velodyne_decoder-1.0.1-cp36-cp36m-win_amd64.whl
Size 177.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
16fcb087ceeab58ef78a6b9b6aebe4c0fab047294e72b1e1cbecfc5457d8d509
BLAKE2b-256 checksum
How to use checksums
dbe22cbbfb5783e2f2c4bf45dc671cb7bcd513bac129a4e5766aab2192c9c758
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Size 341.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
7ecc1f896ba21445765c947bffe88d05db1ebdf036c82dbbee94795b1c6cb332
BLAKE2b-256 checksum
How to use checksums
80af1fbf36f9b8c42c82ed5c98e78d64a1e054eb0fbd24ba136bd84565a78ca9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp36-cp36m-macosx_10_9_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
Size 218.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
71f2c1329e3b26909cf8553d16d9dfaa53cd6249b9498416c981d8911460e8d2
BLAKE2b-256 checksum
How to use checksums
026ac7e81fed9648dc272dc6312cbe0d5e6724abfcd09b95baa46e7b180c3c9f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp35-cp35m-win_amd64.whl

Download URL velodyne_decoder-1.0.1-cp35-cp35m-win_amd64.whl
Size 177.8 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
727567099a0e13d14b8ff45afd67510ab009fd9409688c284bfc48b6b6468437
BLAKE2b-256 checksum
How to use checksums
af5b9001c0be5a7460d630e4f46296c60e4b6a960c888339791d3b3add2a6588
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp35-cp35m-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp35-cp35m-manylinux2010_x86_64.whl
Size 341.3 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
6ddeb760ed9849e1b86f51d8cda1de85e0fb56ac9d9c8a9fa7d4426cc8419a32
BLAKE2b-256 checksum
How to use checksums
c7984036f3994a463f99147068ff53af0e3b36498c10922881878ed7a68a7304
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp35-cp35m-macosx_10_9_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp35-cp35m-macosx_10_9_x86_64.whl
Size 218.5 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
73c054f2f7b4129b8ea164232d0d0dcba14522c1a6b33a6f142bcfe109e4518c
BLAKE2b-256 checksum
How to use checksums
0a1efe137732a8745b91669d0b504c2867ecc831fa8788e7b1877a52e81f7893
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp27-cp27mu-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp27-cp27mu-manylinux2010_x86_64.whl
Size 342.3 kB
Tags CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
de78d41d95939fcc5bfdaa2239b9ed81413fde9d7d4767f470a0af98d3ac0309
BLAKE2b-256 checksum
How to use checksums
1aa51abf8dc578f7726e54cfe8a982ef5f686525f5f2643f90f081a26b1e19b6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp27-cp27m-win_amd64.whl

Download URL velodyne_decoder-1.0.1-cp27-cp27m-win_amd64.whl
Size 178.7 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
eaaf31e023c8b728032e969a371f8d5e21b0c56ec9280bfbeff53ca2741beaff
BLAKE2b-256 checksum
How to use checksums
a478a9bb77846d48499f6ca736cf847392810e4f31d2c12e4edac621ef418254
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl
Size 342.2 kB
Tags CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
3161e3ac1f6ceb5e2cec675a178c0ce98b7832cc752e6fb48a65e8d3a395da23
BLAKE2b-256 checksum
How to use checksums
896fc188ef7579cd375811b7b0d808f824adbe3e8a584156e41973683e33bed3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / velodyne_decoder-1.0.1-cp27-cp27m-macosx_10_9_x86_64.whl

Download URL velodyne_decoder-1.0.1-cp27-cp27m-macosx_10_9_x86_64.whl
Size 219.1 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
91f3dd4fadc6e372f4ed2b68fb4bd0047cd2d896d28770c02dcfe055cb36a8bd
BLAKE2b-256 checksum
How to use checksums
d67f793ba87e493225b5b68b01f14fe64c4489d6ddf9e4b6fa5d19bbcd211493
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

3.1.0

36 release files

3.0.1

43 release files

3.0.0

36 release files

2.3.0

21 release files

2.2.0

19 release files

2.0.0

19 release files

This release

1.0.1 This release

20 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page