Ask Your Question
0

how to save the published data of a topic for using in matlab

asked 2016-12-06 20:18:57 -0600

A.M Dynamics gravatar image

Dear All,

I am using rviz for monitoring the path planning of my mobile robot. It is easily possible to subscribe to a topic and visualize the results data. I wonder how I can save the data of planned path by the planner. I can save topics in a bag file but the problem is that I cannot extract and use them in other software. More clearly, I need to plot this path in Matlab software. Does anybody have any idea how to do it? How do I extract this information from a bag file or Is there any other way to save this data in another format which is usable in Matlab?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-12-07 00:08:37 -0600

rbbg gravatar image

The easiest method is probably to convert the data in the bag file to a csv file, have a look at this topic for some suggestions how to do that:

how to extract data from a bag

Matlab is capable of loading the csv files and for a description of how one person did that you can even have a look over here: exporting ros bag files to matlab

Good luck

edit flag offensive delete link more

Comments

No need to convert to csv if you have the Robotic System Toolbox. See Open and parse rosbag log file.

gvdhoorn gravatar imagegvdhoorn ( 2016-12-07 03:30:45 -0600 )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: 2016-12-06 20:18:57 -0600

Seen: 149 times

Last updated: Dec 07 '16