tomas789 / kitti2bag

Convert KITTI dataset to ROS bag file the easy way!
MIT License
702 stars 256 forks source link

Odometry dataset support #5

Closed emreay- closed 7 years ago

emreay- commented 7 years ago

Hey, I added support for odometry datasets and changed few things. This is my first pull request ever, so excuse any silly things I might have done. I tried to keep the original style and functions as much as possible.

So the highlights;

Convert KITTI dataset to ROS bag file the easy way!

positional arguments: {raw_synced,odom_color,odom_gray} KITTI dataset type dir base directory of the dataset, if no directory passed the deafult is current working directory

optional arguments: -h, --help show this help message and exit -t DATE, --date DATE date of the raw dataset (i.e. 2011_09_26), option is only for RAW datasets. -r DRIVE, --drive DRIVE drive number of the raw dataset (i.e. 0001), option is only for RAW datasets. -s {00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21}, --sequence {00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21} sequence of the odometry dataset (between 00 - 21), option is only for ODOMETRY datasets.


So for example to convert a raw dataset;

kitti2bag raw_synced -t 2011_09_26 -r 0002

or

kitti2bag raw_synced <directory that contains 2011_09_26/> -t 2011_09_26 -r 0002


And for a gray scale odometry dataset;

kitti2bag odom_gray -s 00



* Both color and gray odometry datasets are supported. The stereo images and dynamic tf are being exported. 
* The accepted types right now are `raw_synced`, `odom_color` and `odom_gray`.