Ask Your Question
1

How to write to a ROS-bag in MATLAB?

asked 2015-12-09 11:41:01 -0500

tyrana gravatar image

updated 2015-12-09 11:47:13 -0500

Hello all,

I am new to using ROS at my university. What I would like to do seems simple: I would like to open a ROS bag in MATLAB, (which I can already do thanks to using https://github.com/bcharrow/matlab_ro... ).

After opening a bag, I would like to simply manipulate its contents, and then write/save it to a new ROS bag, in MATLAB.

Is there a way to do this simply? Thank you in advance.

FWIW I have access to MATLAB 2014 and 2015.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-12-10 02:19:40 -0500

updated 2015-12-14 02:02:36 -0500

Did you know that the R2015 release comes with ROS support? It's called Robotics System Toolbox and offers ALL kind of functions to work with ROS, including open, handle, edit and save ros bags.

In this link you can find the documentation for this toolbox.

EDIT 1 And in this link an example with rosbags.

The thing is, if I've understood you, that you want to give the command to save a rosbag from MATLAB, right? I don't know if you can do that in MATLAB... usually you save the rosbags from ROS and later you manipulate that information with MATLAB. Maybe you can create a node with a service that starts the recording of a rosbag, and call that service from MATLAB.

edit flag offensive delete link more

Comments

Hi, thank you for your answer, but I did not see anything that pertained to writing a ROS bag? Thanks.

tyrana gravatar imagetyrana ( 2015-12-11 17:19:19 -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

2 followers

Stats

Asked: 2015-12-09 11:35:13 -0500

Seen: 1,153 times

Last updated: Dec 14 '15