{"id":13443617,"url":"https://github.com/tomas789/kitti2bag","last_synced_at":"2025-05-12T09:55:15.129Z","repository":{"id":38185198,"uuid":"74966061","full_name":"tomas789/kitti2bag","owner":"tomas789","description":"Convert KITTI dataset to ROS bag file the easy way!","archived":false,"fork":false,"pushed_at":"2024-07-06T09:21:20.000Z","size":353,"stargazers_count":772,"open_issues_count":41,"forks_count":262,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-08T15:52:54.453Z","etag":null,"topics":["converter","kitti","kitti-data","kitti-dataset","odometry","point-cloud","ros","rosbag","tool"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomas789.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-28T11:20:56.000Z","updated_at":"2025-05-06T05:15:38.000Z","dependencies_parsed_at":"2024-10-28T04:53:40.973Z","dependency_job_id":"eadc462b-6dd4-4f8d-89bf-b37320a43b15","html_url":"https://github.com/tomas789/kitti2bag","commit_stats":{"total_commits":61,"total_committers":6,"mean_commits":"10.166666666666666","dds":0.5245901639344263,"last_synced_commit":"bf0d46c49a77f5d5500621934ccd617d18cf776b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas789%2Fkitti2bag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas789%2Fkitti2bag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas789%2Fkitti2bag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomas789%2Fkitti2bag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomas789","download_url":"https://codeload.github.com/tomas789/kitti2bag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253102572,"owners_count":21854499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","kitti","kitti-data","kitti-dataset","odometry","point-cloud","ros","rosbag","tool"],"created_at":"2024-07-31T03:02:05.290Z","updated_at":"2025-05-12T09:55:15.106Z","avatar_url":"https://github.com/tomas789.png","language":"Python","funding_links":[],"categories":["Python","Operation System","Interaction"],"sub_categories":["Database and Record","Storage and Record"],"readme":"# kitti2bag\n\n*Hello everybody! I'm looking for more people that can bring this package to the next level. If you'd like to help you can contact me via the email. I'll be happy for every news contribution!*\n\n[![Gitter](https://badges.gitter.im/kitti2bag/community.svg)](https://gitter.im/kitti2bag/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge) [![Build Status](https://travis-ci.org/tomas789/kitti2bag.svg?branch=master)](https://travis-ci.org/tomas789/kitti2bag)\n\nConvert [KITTI](http://www.cvlibs.net/datasets/kitti/index.php) dataset to ROS bag file the easy way!\n\n![KITTI playback preview](https://raw.githubusercontent.com/tomas789/kitti2bag/gh-pages/img/kitti_playback.png)\n\n## Collaboration\n\nThis package enjoyed significant interest from more people then I could have thought at the beginning. I'm really glad to see that. I see many PRs and issues being raised but my day job does not allow me to push this repository further. In order to allow this package to prosper, I'm opening it up for the community. I'm more than happy to add you as a collaborator to this repository. Just send me an email. \n\nAnd by the way. To ensure we maintain the quality of the repo you are required to get the PR approval from at least one other collaborator. You can use the [Gitter](https://gitter.im/kitti2bag/community?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link) to communicate with others.\n\n## TODOs\n\nHelp me make this feature rich and complete. Just fork this repo, implement new features (very easy in this case) and make [pull request](https://github.com/tomas789/kitti2bag/pulls).\n\nFeature request list:\n * make [URDF](http://wiki.ros.org/urdf) of a car so transformations between frames are easily done by ROS itself.\n * deal with tracklets\n * support for unsynced+unrectified version\n * provide documentation via [ROS wiki](wiki.ros.org)\n * provide simple GUI\n * distribute publically available bagfiles (is there a reliable public storage for this purpose?)\n * export only subset of sensors\n\n## Contributions\n\nThanks to the work of @jnitsch, _kitti2bag_ can now export velodyne laser data and dynamic _tf_ transformations. Thanks to @emreay-, this tool can now convert odometry datasets too. Thank you both!\n\n## How to install it?\n\nIt is very easy! On the machine with ROS installed, just run\n```bash\npip install kitti2bag\n```\n\n## How to run it?\n\nOne example is better then thousand words so here it is\n\n```bash\n$ wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0002/2011_09_26_drive_0002_sync.zip\n$ wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_calib.zip\n$ unzip 2011_09_26_drive_0002_sync.zip\n$ unzip 2011_09_26_calib.zip\n$ kitti2bag -t 2011_09_26 -r 0002 raw_synced .\nExporting static transformations\nExporting time dependent transformations\nExporting IMU\nExporting camera 0\n100% (77 of 77) |##########################| Elapsed Time: 0:00:00 Time: 0:00:00\nExporting camera 1\n100% (77 of 77) |##########################| Elapsed Time: 0:00:00 Time: 0:00:00\nExporting camera 2\n100% (77 of 77) |##########################| Elapsed Time: 0:00:01 Time: 0:00:01\nExporting camera 3\n100% (77 of 77) |##########################| Elapsed Time: 0:00:01 Time: 0:00:01\nExporting velodyne data\n100% (77 of 77) |##########################| Elapsed Time: 0:00:15 Time: 0:00:15\n## OVERVIEW ##\npath:        kitti_2011_09_26_drive_0002_synced.bag\nversion:     2.0\nduration:    7.8s\nstart:       Sep 26 2011 13:02:44.33 (1317042164.33)\nend:         Sep 26 2011 13:02:52.16 (1317042172.16)\nsize:        417.2 MB\nmessages:    1078\ncompression: none [308/308 chunks]\ntypes:       geometry_msgs/TwistStamped [98d34b0043a2093cf9d9345ab6eef12e]\n             sensor_msgs/CameraInfo     [c9a58c1b0b154e0e6da7578cb991d214]\n             sensor_msgs/Image          [060021388200f6f0f447d0fcd9c64743]\n             sensor_msgs/Imu            [6a62c6daae103f4ff57a132d6f95cec2]\n             sensor_msgs/NavSatFix      [2d3a8cd499b9b4a0249fb98fd05cfa48]\n             sensor_msgs/PointCloud2    [1158d486dd51d683ce2f1be655c3c181]\n             tf2_msgs/TFMessage         [94810edda583a504dfda3829e70d7eec]\ntopics:      /kitti/camera_color_left/camera_info    77 msgs    : sensor_msgs/CameraInfo    \n             /kitti/camera_color_left/image_raw      77 msgs    : sensor_msgs/Image         \n             /kitti/camera_color_right/camera_info   77 msgs    : sensor_msgs/CameraInfo    \n             /kitti/camera_color_right/image_raw     77 msgs    : sensor_msgs/Image         \n             /kitti/camera_gray_left/camera_info     77 msgs    : sensor_msgs/CameraInfo    \n             /kitti/camera_gray_left/image_raw       77 msgs    : sensor_msgs/Image         \n             /kitti/camera_gray_right/camera_info    77 msgs    : sensor_msgs/CameraInfo    \n             /kitti/camera_gray_right/image_raw      77 msgs    : sensor_msgs/Image         \n             /kitti/oxts/gps/fix                     77 msgs    : sensor_msgs/NavSatFix     \n             /kitti/oxts/gps/vel                     77 msgs    : geometry_msgs/TwistStamped\n             /kitti/oxts/imu                         77 msgs    : sensor_msgs/Imu           \n             /kitti/velo/pointcloud                  77 msgs    : sensor_msgs/PointCloud2   \n             /tf                                     77 msgs    : tf2_msgs/TFMessage        \n             /tf_static                              77 msgs    : tf2_msgs/TFMessage\n```\n\n\nThat's it. You have file `kitti_2011_09_26_drive_0002_sync.bag` that contains your data.\n\nOther source files can be found at [KITTI raw data](http://www.cvlibs.net/datasets/kitti/raw_data.php) page.\n\nIf you got an error saying something like _command not found_ it means that your python installation is in bad shape. You might try running \n```python -m kitti2bag -t 2011_09_26 -r 0002 raw_synced .```\nOr maybe use Docker.\n\n### Prefer Docker?\n\nThat is easy too. There is a pre-built image `tomas789/kitti2bag`. \n\n```bash\n$ wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0002/2011_09_26_drive_0002_sync.zip\n$ wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_calib.zip\n$ unzip 2011_09_26_drive_0002_sync.zip\n$ unzip 2011_09_26_calib.zip\n$ docker run -v `pwd`:/data -it tomas789/kitti2bag -t 2011_09_26 -r 0002 raw_synced\nExporting static transformations\nExporting time dependent transformations\n...\n```\n\nThis might also be a better alternative if you are having troubles installing the package. \n\n## Bug reporting, support and feature requests.\n\nI appreciate [pull requests](https://github.com/tomas789/kitti2bag/pulls) with bug fixes and new features. You you want to help with something please use [GitHub issue tracker](https://github.com/tomas789/kitti2bag/issues).\n\n## Related works\n\n * [pykitti](https://github.com/utiasSTARS/pykitti) is very simple library for dealing with KITTI dataset in python. \n * [kitti_player](https://github.com/tomas789/kitti_player) allows to play dataset directly. No bag file needed. I found difficult to get it work. Some bug fixed can be found in [my fork of kitti_player](https://github.com/tomas789/kitti_player) but still not good enough.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomas789%2Fkitti2bag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomas789%2Fkitti2bag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomas789%2Fkitti2bag/lists"}