Ask Your Question
0

How to convert .csv or .mat file to ros?

asked 2017-03-07 14:01:21 -0600

Bill5785 gravatar image

updated 2017-03-07 14:03:01 -0600

I collect the odom and IMU data by dspace microautobox and at the same time I collected lidar data directly on ROS.

The odom data is .mat file now and it can be converted to .csv file. The lidar data has been recorded as a rosbag file.

Now I want to first convert the odom data to something available for ROS and then merge the two data to a single rosbag file. How can I make it?

I searched online for a long time but only can find how to convert rosbag file to other formats...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-03-07 14:14:19 -0600

gvdhoorn gravatar image

updated 2017-03-07 14:14:28 -0600

See #q119211 and #q233042 (via #q249059) for related questions.

To summarise: a simple Python script that reads in your CSV and uses the rosbag API to convert everything to a rosbag is probably easiest.

edit flag offensive delete link more

Comments

Thanks, I will try that

Bill5785 gravatar imageBill5785 ( 2017-03-07 14:32:05 -0600 )edit

By the way, do you have any suggestion about how to correlate dspace with ROS? I want to implement real time finally and I'm not sure if converting data this way is a best solution?

Bill5785 gravatar imageBill5785 ( 2017-03-07 14:33:38 -0600 )edit

This is really a separate question. Please open a new one.

gvdhoorn gravatar imagegvdhoorn ( 2017-03-07 14:53:34 -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: 2017-03-07 14:01:21 -0600

Seen: 502 times

Last updated: Mar 07 '17