tomas789 / kitti2bag

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

the file "kitti_2011_09_26_drive_0002_synced.bag" is empty #68

Open zhongncku opened 1 year ago

zhongncku commented 1 year ago

Hi everyone, I was following the guidance utilizing kitti2bag to visualize the pcd, however recently face this problem, havent found ways to solve, pls help me, Thanks in advance

the terminal was run in this directory, which contains the following files: zhong1@ubuntu:~/visualize pcd$ ls 2011_09_26
2011_09_26_drive_0005_sync.zip
kitti2bag-master.zip 2011_09_26_calib.zip
kitti2bag-master

call the generating command: zhong1@ubuntu:~/visualize pcd$ kitti2bag -t 2011_09_26 -r 0002 raw_synced Traceback (most recent call last): File "/usr/local/bin/kitti2bag", line 394, in main() File "/usr/local/bin/kitti2bag", line 302, in main kitti = pykitti.raw(args.dir, args.date, args.drive) File "/home/zhong1/.local/lib/python3.8/site-packages/pykitti/raw.py", line 35, in init self._load_timestamps() File "/home/zhong1/.local/lib/python3.8/site-packages/pykitti/raw.py", line 253, in _load_timestamps with open(timestamp_file, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/zhong1/visualize pcd/2011_09_26/2011_09_26_drive_0002_sync/oxts/timestamps.txt'

->>successfully generated "kitti_2011_09_26_drive_0002_synced.bag" however that file is empty @@

Magic-wei commented 1 year ago

@zhongncku Looks like you downloaded the 0005 dataset instead of 0002 which was used in your command. Try kitti2bag -t 2011_09_26 -r 0005 raw_synced instead.