valgur / velodyne_decoder

Fully-featured C++/Python Velodyne packet decoder
BSD 3-Clause "New" or "Revised" License
39 stars 12 forks source link

decoded data arrangement #14

Closed M-Bahy closed 4 months ago

M-Bahy commented 4 months ago

I used the snippet you provided for Decoding Velodyne data from a PCAP file , however the data comes out as Y , negative X , Z
instead of x,y,z . I compared it to veloview extracted csv and it indeed came out as Points_m_XYZ:1,-Points_m_XYZ:0,Points_m_XYZ:2

I know I can just multiply by -1 and rearrange , but am I doing something wrong ?

Sensor type : VLP-16

valgur commented 4 months ago

Oh, right. velodyne_decoder transforms the point cloud to follow ROS conventions for the axes ordering:

That's definitely something that should be documented better. Thank you for mentioning this!

valgur commented 4 months ago

Updated the readme. Thanks again!