ethz-asl / kitti_to_rosbag

Dataset tools for working with the KITTI dataset raw data ( http://www.cvlibs.net/datasets/kitti/raw_data.php ) and converting it to a ROS bag. Also allows a library for direct access to poses, velodyne scans, and images.
248 stars 100 forks source link

abort (core dumped) #8

Closed VarunUmesh1407 closed 3 years ago

VarunUmesh1407 commented 7 years ago

Hi all, I am trying to convert a kitti dataset to ros bag file. but i am getting the error described below. please help.,

Timestmap map for pose: terminate called after throwing an instance of 'rosbag::BagIOException' what(): Error opening file: datasets/kitti/2011_09_26 Aborted at 1504541712 (unix time) try "date -d @1504541712" if you are using GNU date PC: @ 0x7fb00104ac37 gsignal SIGABRT (@0x3e800002801) received by PID 10241 (TID 0x7fb00303e9c0) from PID 10241; stack trace: @ 0x7fb00104acb0 (unknown) @ 0x7fb00104ac37 gsignal @ 0x7fb00104e028 abort @ 0x7fb001653535 gnu_cxx::verbose_terminate_handler() @ 0x7fb0016516d6 (unknown) @ 0x7fb001651703 std::terminate() @ 0x7fb001651922 cxa_throw @ 0x7fb00192e1ca rosbag::ChunkedFile::open() @ 0x7fb00192e375 rosbag::ChunkedFile::openWrite() @ 0x7fb001912a3d rosbag::Bag::openWrite() @ 0x7fb001918185 rosbag::Bag::open() @ 0x409891 kitti::KittiBagConverter::KittiBagConverter() @ 0x409136 main @ 0x7fb001035f45 libc_start_main @ 0x4096ea (unknown) Aborted (core dumped)

helenol commented 7 years ago

Looks like it can't open the bag file... make sure the file path you feed in is correct. Looks like the file you're trying to write to is: "datasets/kitti/2011_09_26", make sure to give it a full path with a .bag extension in an existing directory.

VarunUmesh1407 commented 7 years ago

Hi @helenol ,

I am using the instruction as mentioned in the readme file . rosrun kitti_to_rosbag kitti_rosbag_converter ~/data/kitti/2011_09_26 ~/data/kitti/2011_09_26/2011_09_26_drive_0035_sync ~/data/kitti/2011_09_26/2011_09_26_drive_0035_sync/testbag.bag

but still it is throwing the same error that it cannot open the dataset file. Below is error i am getting:

eberhardt@eberhardt-ThinkPad-T430:~/ueyecamcatkin_ws$ rosrun kitti_to_rosbag kitti_rosbag_converter /home/eberhardt/Desktop/datasets/kitti/2011_09_26 /home/eberhardt/Desktop datasets/kitti/2011_09_26/2011_09_26_drive_0018_sync /home/eberhardt/Desktop/datasets/kitti/2011_09_26/2011_09_26_drive_0018_sync/kitti.bag Transform T_vel_imu: 0.999998 0.000755307 -0.00203583 -0.808676 -0.000785403 0.99989 -0.014823 0.319556 0.00202441 0.0148245 0.999888 -0.799723 0 0 0 1 Header: calib_time Header: corner_dist Header: S_00 Header: K_00 Header: D_00 Header: R_00 Header: T_00 Header: S_rect_00 S_rect header: S_rect_00 substring: 00 Index: 0 Image size: 1242 375 Header: R_rect_00 R_rect header: R_rect_00 substring: 00 Header: P_rect_00 P_rect header: P_rect_00 substring: 00 Projection mat: 721.538 0 609.559 0 0 721.538 172.854 0 0 0 1 0 Header: S_01 Header: K_01 Header: D_01 Header: R_01 Header: T_01 Header: S_rect_01 S_rect header: S_rect_01 substring: 01 Index: 1 Image size: 1242 375 Header: R_rect_01 R_rect header: R_rect_01 substring: 01 Header: P_rect_01 P_rect header: P_rect_01 substring: 01 Projection mat: 721.538 0 609.559 -387.574 0 721.538 172.854 0 0 0 1 0 Header: S_02 Header: K_02 Header: D_02 Header: R_02 Header: T_02 Header: S_rect_02 S_rect header: S_rect_02 substring: 02 Index: 2 Image size: 1242 375 Header: R_rect_02 R_rect header: R_rect_02 substring: 02 Header: P_rect_02 P_rect header: P_rect_02 substring: 02 Projection mat: 721.538 0 609.559 44.8573 0 721.538 172.854 0.216379 0 0 1 0.00274588 Header: S_03 Header: K_03 Header: D_03 Header: R_03 Header: T_03 Header: S_rect_03 S_rect header: S_rect_03 substring: 03 Index: 3 Image size: 1242 375 Header: R_rect_03 R_rect header: R_rect_03 substring: 03 Header: P_rect_03 P_rect header: P_rect_03 substring: 03 Projection mat: 721.538 0 609.559 -339.524 0 721.538 172.854 2.19994 0 0 1 0.0027299 Timestmap map for pose: terminate called after throwing an instance of 'rosbag::BagIOException' what(): Error opening file: datasets/kitti/2011_09_26/2011_09_26_drive_0018_sync Aborted at 1504649335 (unix time) try "date -d @1504649335" if you are using GNU date PC: @ 0x7f711cbecc37 gsignal SIGABRT (@0x3e800006775) received by PID 26485 (TID 0x7f711ed539c0) from PID 26485; stack trace: @ 0x7f711cbeccb0 (unknown) @ 0x7f711cbecc37 gsignal @ 0x7f711cbf0028 abort @ 0x7f711d1f5535 gnu_cxx::verbose_terminate_handler() @ 0x7f711d1f36d6 (unknown) @ 0x7f711d1f3703 std::terminate() @ 0x7f711d1f3922 cxa_throw @ 0x7f711d52d847 rosbag::ChunkedFile::open() @ 0x7f711d52d4ab rosbag::ChunkedFile::openWrite() @ 0x7f711d5012bf rosbag::Bag::openWrite() @ 0x7f711d500f1d rosbag::Bag::open() @ 0x457c2a kitti::KittiBagConverter::KittiBagConverter() @ 0x458cd6 main @ 0x7f711cbd7f45 libc_start_main @ 0x457969 (unknown) Aborted (core dumped)

CtfChan commented 6 years ago

Hey I'm encountering the same issue as well right now. Has anyone come up with a solution?

rdube commented 6 years ago

@CtfChan see the comment of @helenol above. Also make sure that you have sufficient space on your hard drive.

CtfChan commented 6 years ago

Got it fixed. Thanks rdube (y)