Ask Your Question
0

Rosbag file location

asked 2020-08-21 05:33:01 -0500

MrRivi gravatar image

Hello,

I would like to know where are rosbags saved to access them through my file explorer (if that is possible).

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-08-21 05:54:02 -0500

MrRivi gravatar image

updated 2020-08-21 05:54:57 -0500

Hi, I found the answer here: http://wiki.ros.org/rosbag/Tutorials/...

So it's necessary to create a directory to store the bag files: mkdir ~/bagfiles

edit flag offensive delete link more

Comments

1

it's necessary to create a directory to store the bag files

Not really, when you record a bag file it will be stored at the same location as you were when doing rosbag record, the tutorial tells you to create the folder bagfile and then go to this new directory to have your bagfile at this location. If you are not in the folder bagfiles when issuing rosbag record, it won't be stored there.

You can use the argument -o to add a prefix to the bagfile name, if you specify an absolute path from then you can choose the location :

rosbag record -a -o $HOME/bagfiles/

This command will save your bagfile in your ~/bagfiles folder regardless of which directory you are currently in.

Delb gravatar image Delb  ( 2020-08-21 07:05:22 -0500 )edit

Perfect! Now I understand.

MrRivi gravatar image MrRivi  ( 2020-08-23 03:04:49 -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

1 follower

Stats

Asked: 2020-08-21 05:33:01 -0500

Seen: 1,051 times

Last updated: Aug 21 '20