This repo is for converting ros2bag(.db3) Lidar data to .bin and .pcd data with UTC timestamps!
- ROS2
- matplotlib
- numpy
- open3d
-
Clone the repo
git clone https://github.com/ZiyeQin/ros2ToBinPcd.git
-
Convert the ros2bag to .bin
python3 rosbag2bin.py
You can find the .csv file in the folder with UTC timestamp for each .bin file.
-
.bin visualization (optional)
python3 binVisualization.py
-
Convert the .bin to .pcd
python3 bin2pcd.py
-
.pcd visualization (optional)
python3 pcdVisualization.py