Bag file opening error

asked 2015-11-03 20:46:31 -0600

Ju Wen Bo gravatar image

I have been trying the tutorial of hector_slam/TutorialsMapping/UsingLoggedData. ( http://wiki.ros.org/hector_slam/Tutor... ) As the second part forth step I suppose to play the bag file, but there is an error.

ju@MK01:~$ wget http://tu-darmstadt-ros-pkg.googlecode.com/files/Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
--2015-11-05 09:44:05--  http://tu-darmstadt-ros-pkg.googlecode.com/files/Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
Resolving tu-darmstadt-ros-pkg.googlecode.com (tu-darmstadt-ros-pkg.googlecode.com)... 74.125.200.82, 2404:6800:4003:c01::52
Connecting to tu-darmstadt-ros-pkg.googlecode.com (tu-darmstadt-ros-pkg.googlecode.com)|74.125.200.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81363927 (78M) [application/octet-stream]
Saving to: ‘Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag’

100%[======================================>] 81,363,927  28.6MB/s   in 2.7s   

2015-11-05 09:44:08 (28.6 MB/s) - ‘Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag’ saved [81363927/81363927]

ju@MK01:~$ rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --clock
[ INFO] [1446687871.730134692]: Opening Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
[FATAL] [1446687871.730975733]: Error opening file: Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag

At first the bag file was downloaded under /home directory and I did drag the file into /catkin_ws so I try the cd ~/catkin_ws and play it but again another error show up.

ju@MK01:~$ cd catkin_ws
ju@MK01:~/catkin_ws$ rosbag play Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag --clock
[ INFO] [1446687957.624403306]: Opening Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
[FATAL] [1446687957.625576671]: Error reading from file: wanted 4 bytes, read 0 bytes
edit retag flag offensive close merge delete

Comments

what permissions do you have on that file? check with ls -l <bagfilename>

Dimitri Schachmann gravatar image Dimitri Schachmann  ( 2015-11-04 05:10:21 -0600 )edit

I have tried to download the file from the same link as you did and I could run the bag file normally. Is the problem resolved on your side? If so, please close the question :)

DavidN gravatar image DavidN  ( 2016-03-17 20:42:50 -0600 )edit