Use Kitti Dataset

In this notebook a sample of the Kitti-Dataset will be downloaded, converted to a rosbag-file and the velodyne data will converted to a pcs-dataset.

Some usage examples are provided, too.

[2]:
from pathlib import Path

import pointcloudset as pcs
INFO - 2021-05-07 10:39:56,250 - _logger - Log opened: Fri May  7 10:39:56 2021 UTC
INFO - 2021-05-07 10:39:56,341 - topics - topicmanager initialized

The following terminal commands will download and unzip the kitti sample. We didn’t want to include the bag file in the repo as it is too large and to avoid any license issues. Also KITTI does not provide bag files directly. In order to get the data you need to run the following cell. If you are using pointcloudset in a docker container you need to run the commands outside of the docker to avoid nested docker commands. This is the reason for the commented docker command.

The docker container (https://hub.docker.com/r/yoyo860224/kitti2bag) is used to convert the kitta data into a rosbag-file. To run the docker under windows use “docker run -v “absolutepathtofolderwheredatais”:/data -it yoyo860224/kitti2bag -t 2011_09_26 -r 0002 raw_synced”.

[3]:
!wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0002/2011_09_26_drive_0002_sync.zip
!wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_calib.zip
!unzip 2011_09_26_drive_0002_sync.zip
!unzip 2011_09_26_calib.zip
#!docker run -v `pwd`:/data -it yoyo860224/kitti2bag -t 2011_09_26 -r 0002 raw_synced



1_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000058.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000036.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000022.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000044.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000007.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000050.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000039.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000038.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000023.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000019.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000041.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000062.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000017.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000014.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000005.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000056.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000057.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000018.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000009.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000051.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000029.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000046.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000071.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000076.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000048.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000043.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000010.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000045.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000055.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000032.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000001.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000052.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000040.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000064.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000073.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000011.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000004.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000020.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000000.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000002.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000054.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000053.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000025.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000074.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000024.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000067.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000030.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000069.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000028.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000003.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000049.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000068.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000016.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000072.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000059.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000070.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000066.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000006.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000021.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000047.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000061.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000042.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000015.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000026.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000060.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000013.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000012.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000031.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000075.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000034.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000065.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000033.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000035.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_02/data/0000000037.png
   creating: 2011_09_26/2011_09_26_drive_0002_sync/image_03/
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/timestamps.txt
   creating: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000008.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000027.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000063.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000058.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000036.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000022.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000044.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000007.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000050.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000039.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000038.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000023.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000019.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000041.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000062.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000017.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000014.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000005.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000056.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000057.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000018.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000009.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000051.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000029.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000046.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000071.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000076.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000048.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000043.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000010.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000045.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000055.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000032.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000001.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000052.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000040.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000064.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000073.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000011.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000004.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000020.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000000.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000002.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000054.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000053.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000025.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000074.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000024.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000067.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000030.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000069.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000028.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000003.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000049.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000068.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000016.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000072.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000059.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000070.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000066.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000006.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000021.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000047.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000061.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000042.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000015.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000026.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000060.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000013.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000012.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000031.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000075.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000034.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000065.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000033.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000035.png
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/image_03/data/0000000037.png
   creating: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/timestamps.txt
   creating: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000071.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000004.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000011.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000031.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000003.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000014.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000048.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000074.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000047.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000025.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000030.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000072.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000052.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000055.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000038.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000046.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000037.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000065.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000049.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000069.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000002.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000050.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000022.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000045.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000057.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000073.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000026.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000075.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000042.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000018.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000028.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000008.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000044.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000027.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000051.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000036.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000013.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000041.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000007.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000056.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000006.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000032.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000064.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000019.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000015.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000020.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000062.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000043.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000076.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000017.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000005.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000000.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000029.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000054.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000034.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000060.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000023.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000039.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000040.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000068.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000058.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000035.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000070.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000063.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000053.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000066.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000001.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000009.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000033.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000024.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000010.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000021.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000012.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000059.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000016.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000067.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/data/0000000061.bin
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/timestamps_start.txt
 extracting: 2011_09_26/2011_09_26_drive_0002_sync/velodyne_points/timestamps_end.txt
Archive:  2011_09_26_calib.zip
 extracting: 2011_09_26/calib_cam_to_cam.txt
 extracting: 2011_09_26/calib_imu_to_velo.txt
 extracting: 2011_09_26/calib_velo_to_cam.txt
[4]:
kittibag = Path().cwd().joinpath("kitti_2011_09_26_drive_0002_synced.bag")
testpath = Path().cwd().parent.joinpath("tests/testdata/kitti_velodyne")

Convert bagfile to pcs-dataset:

[5]:
kittiset = pcs.Dataset.from_file(kittibag,topic="/kitti/velo/pointcloud",keep_zeros=False)
100%|██████████| 77/77 [00:24<00:00,  3.17it/s]
[6]:
kittiset[0:3].to_file(testpath)
Files written to: /workspaces/lidar/tests/testdata/kitti_velodyne/kitti_2011_09_26_drive_0002_synced

Do some analysis:

[8]:
def isolate_target(frame: pcs.PointCloud) -> pcs.PointCloud:
    return frame.limit("i",0.9,1)
[9]:
intense_points = isolate_target(kittiset[0])
[10]:
intense_points.plot(color = "i")
[ ]: