All Projects → leofansq → Tools_RosBag2KITTI

leofansq / Tools_RosBag2KITTI

Licence: MIT license
Conversion from ROSBAG (.bag) to image (.png) and points cloud (.bin), including ROSBAG decoding, pcd2bin and file directory extraction.

Programming Languages

CMake
9771 projects
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tools RosBag2KITTI

PSXPackager
A utility to convert Playstation disc images in various formats to PBP format and back
Stars: ✭ 67 (-48.85%)
Mutual labels:  bin
get-bin-path
Get the current package's binary path
Stars: ✭ 25 (-80.92%)
Mutual labels:  bin
Engine-Tune-Repository-TunerPro-EFIlive-TunerCat
Repository for Engine Tune information
Stars: ✭ 30 (-77.1%)
Mutual labels:  bin
banksdb
No description or website provided.
Stars: ✭ 13 (-90.08%)
Mutual labels:  bin
rectangle-pack
A general purpose, deterministic bin packer designed to conform to any two or three dimensional use case.
Stars: ✭ 60 (-54.2%)
Mutual labels:  bin
learning-topology-synthetic-data
Tensorflow implementation of Learning Topology from Synthetic Data for Unsupervised Depth Completion (RAL 2021 & ICRA 2021)
Stars: ✭ 22 (-83.21%)
Mutual labels:  kitti
SASensorProcessing
ROS node to create pointcloud out of stereo images from the KITTI Vision Benchmark Suite
Stars: ✭ 26 (-80.15%)
Mutual labels:  kitti
ViP
A New 3D Detector. Code Will be made public.
Stars: ✭ 29 (-77.86%)
Mutual labels:  kitti
EgoNet
Official project website for the CVPR 2021 paper "Exploring intermediate representation for monocular vehicle pose estimation"
Stars: ✭ 111 (-15.27%)
Mutual labels:  kitti
StereoNet
A customized implementation of the paper "StereoNet: guided hierarchical refinement for real-time edge-aware depth prediction"
Stars: ✭ 107 (-18.32%)
Mutual labels:  kitti
SpinNet
[CVPR 2021] SpinNet: Learning a General Surface Descriptor for 3D Point Cloud Registration
Stars: ✭ 181 (+38.17%)
Mutual labels:  kitti
3D-Detection-Tracking-Viewer
3D detection and tracking viewer (visualization) for kitti & waymo dataset
Stars: ✭ 150 (+14.5%)
Mutual labels:  kitti
DSIN
Deep Image Compression using Decoder Side Information (ECCV 2020)
Stars: ✭ 39 (-70.23%)
Mutual labels:  kitti
kitti-A-LOAM
Easy description to run and evaluate A-LOAM with KITTI-data
Stars: ✭ 28 (-78.63%)
Mutual labels:  kitti
Tools Merge Image PointCloud
Project the PointCloud to the image & Generate the LiDAR PointCloud with color.
Stars: ✭ 39 (-70.23%)
Mutual labels:  kitti
continuous-fusion
(ROS) Sensor fusion algorithm for camera+lidar.
Stars: ✭ 26 (-80.15%)
Mutual labels:  kitti
imvoxelnet
[WACV2022] ImVoxelNet: Image to Voxels Projection for Monocular and Multi-View General-Purpose 3D Object Detection
Stars: ✭ 179 (+36.64%)
Mutual labels:  kitti
Handy3DScanner
Repository for Handy 3D Scanner
Stars: ✭ 54 (-58.78%)
Mutual labels:  pcd
obj2pcd
Simple point cloud sampler for obj file
Stars: ✭ 19 (-85.5%)
Mutual labels:  pcd

About

2D images and 3D points cloud are the two most commonly used data of intelligent vehicles, which are usually recorded in ROSBAG format via the ROS system in actual engineering practice. However, the visual and LiDAR data in the public dataset (e.g. KITTI) for research are saved as .png and .bin files respectively. To bridge the gap between engineering and research, this repository provides a tool to get .png and .bin from .bag.

How to use

(1) Decode ROSABG

The recorded ROSBAG are firstly decoded into .png for image and .pcd for points cloud.

  • Build the project in the ROS workspace

     cd catkin_ws
     catkin_make
  • [Optional] Setup the parameters in map_generation_node.cpp to achieve the rotation and translation of the coordinate system.

    All parameters for the rotation are angular and the clockwise is positive.

  • Decode ROSBAG to .png and .pcd, the results are saved in output.

     # 1st terminal for ROS core
     roscore
     # 2nd terminal for decoding node
     ./devel/lib/obstacle_detection/map_generate
     # 3rd terminal for ROSBAG playing, 0.1 means 0.1 times speed
     rosbag play xxx.bag -r 0.1

    The actual play speed of ROSBAG is determined by the IO performance. Please adjust the speed to ensure the timestamps are within +/- 50 ms.

(2) Convert .pcd to .bin

The points cloud is further converted from .pcd to .bin.

  • Build the project

     mkdir CMakeFile
     cd CMakeFile
     cmake ..
     make
  • Setup: Move the .pcd files to pcd, and set the path in pcd2bin.cpp.

  • Convertion

     cd CMakeFile
     ./pcd2bin

    The results are saved in bin.

(3) Create file list

Generate the list of the subset files for training or validation, e.g. train.txt and val.txt in KITTI.

  • Get the file list
     cd bin
     ls -1 | grep ".bin$" > list.txt
     python get_list.py

    The results are saved in bin named files_list.txt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].