ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to view existing a bag file?

asked 2015-06-29 00:40:05 -0500

jossy gravatar image

updated 2015-06-29 01:33:48 -0500

I use ubuntu 12.04 and fuerte. I install ROS from wiki page. I want to view a .bag file but I cannot do it. On ubuntu terminal, I run below commands :


rosbag play LSD_room.bag

I see only below output image description


I run below command

rosrun rviz rviz

Last output image is below image description

edit retag flag offensive close merge delete


Well, is the Bag Time/Duration counter increasing? If yes, you are actually already playing the bagfile. Bagfiles just record topics, so you need to start rviz and configure it accordingly. Do a 'rosbag info LSD_room.bag' to see which topics you actually recorded.

mgruhler gravatar image mgruhler  ( 2015-06-29 00:49:03 -0500 )edit

Yes, the counter is increasing. Result of 'rusbag info .bag' command is below :

version: 2.0 duration: 55.3s start: May 13 2014 20:31:02.21 (1400002262.21) end: May 13 2014 20:31:57.55 (1400002317.55) size: 793.2 MB messages: 5404 compres

jossy gravatar image jossy  ( 2015-06-29 01:10:54 -0500 )edit

I run 'rosrun rviz rviz'. It says that './rviz/display_config doesn't exist'. I click ok. But I don't see anything on it.

jossy gravatar image jossy  ( 2015-06-29 01:12:56 -0500 )edit

Well, you don't have an rviz default config saved yet. This is what the error says. You then obviously have to configure rviz such that you can view your topic. But this depends on what you have recorderd (I don't see the full output, please edit your question to show the full output)

mgruhler gravatar image mgruhler  ( 2015-06-29 01:23:54 -0500 )edit

On another note, why do you use Fuerte? Fuerte is quite outdated by now, and will thus receive no more updates. There has just recently been the release of Jade (Fuerte->Groovy->Hydro->Indigo->Jade).

mgruhler gravatar image mgruhler  ( 2015-06-29 01:25:16 -0500 )edit

What do you expect to see? Are you following a tutorial?

ahendrix gravatar image ahendrix  ( 2015-06-29 01:28:24 -0500 )edit

@mig, I use fuerte because my ubuntu version is 12.04. I just edit my question text.

jossy gravatar image jossy  ( 2015-06-29 01:34:55 -0500 )edit

@ahendrix, I want to run lsd_slam on my pc. So, I install ROS. But I can't run any lsd_slam example. So, I start basic command.

jossy gravatar image jossy  ( 2015-06-29 01:36:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-29 02:04:12 -0500

ahendrix gravatar image

updated 2015-06-29 02:06:11 -0500

If you want to inspect the data in a bag file, you can use rqt_bag, or you can use rosbag info to list the topics in a bag file. From there, you need to understand the type of data in those topics in order to understand how to set up rviz.

If you've having trouble running the lsd_slam examples, you should probably ask that question directly instead of asking a vague and mostly unrelated question.

edit flag offensive delete link more


There is a sentence that says I tried rosbag command. But I don't see anything on riz and viewer window.

jossy gravatar image jossy  ( 2015-06-29 02:21:15 -0500 )edit

Question Tools

1 follower


Asked: 2015-06-29 00:40:05 -0500

Seen: 8,548 times

Last updated: Jun 29 '15