ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Error opening file: mylaserdata.bag

asked 2012-08-16 19:19:38 -0500

updated 2020-10-05 21:26:17 -0500

M@t gravatar image

Hi all, I just use the Hokuyo laser range-finder to try to make my own map following 2.2 of this website ( However, when I typed rosbag play mylaserdata.bag, it failed!!!! And the terminal displays:

[FATAL] [1345180506.412656994]: Error opening file: mylaserdata.bag

How can I deal with it? Any help is appreciated!

edit retag flag offensive close merge delete


Sorry if this is too obvious, but is the file mylaserdata.bag located on the same folder where you are executing "rosbag play mylaserdata.bag"? if it is not then you should provide the path to the bag file when executing rosbag play

Martin Peris gravatar image Martin Peris  ( 2012-08-16 19:45:12 -0500 )edit

In GUI, do you see the file name as

Sudhan gravatar image Sudhan  ( 2012-08-16 22:53:59 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-04-09 02:42:40 -0500

ct2034 gravatar image

updated 2014-04-09 02:44:01 -0500

I tried to reproduce the error and for me this only occurs when the file doesn't exist. Please navigate to the folder where the bag-file lies. e.g:

cd /path/to/file

(I don't know where this is in ur case.)

And make sure, you have read access there! then use:

rosbag play mylaserdata.bag

Maybe ther is also a typo. (Check the name you used when recording the file)

edit flag offensive delete link more

answered 2015-04-17 02:45:52 -0500

facing the same error.. checked with the location as well as spell check.. nothing wrong with either of them.. what else can be the issue?

edit flag offensive delete link more


Kindly do not comment in Answer field..

kk2105 gravatar image kk2105  ( 2020-10-05 22:55:44 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2012-08-16 19:19:38 -0500

Seen: 7,597 times

Last updated: Oct 05 '20