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

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

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

Bill5785 gravatar image

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

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 -0500

gvdhoorn gravatar image

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

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 image Bill5785  ( 2017-03-07 14:32:05 -0500 )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 image Bill5785  ( 2017-03-07 14:33:38 -0500 )edit

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

gvdhoorn gravatar image gvdhoorn  ( 2017-03-07 14:53:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-07 14:01:21 -0500

Seen: 790 times

Last updated: Mar 07 '17