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

publish IMU data into topic from CSV file

asked 2022-04-07 23:52:41 -0500

SAMIR_ZEMAM gravatar image

Hi all;

First of all, thank you so much for this great ROS community that helps us to solve our issues!

I have csv file of recorded data of IMU (linear accelerations and quaternions -- 7 columns and n rows). I want to read the CSV file separately and create two publisher : one publisher for linear acceleration (publish acc_x, acc_y and acc_z) and another publisher for quaternion (publish Q0, Q1, Q2 and Q3).

I am beginner of ROS and C++, can you have one example who like like what I have explained. I appreciate your help and if you have a sample of an example of code ROS cpp that handles this kind of problematic , I will be very happy :) .

Thank you my family and have great day

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-04-08 16:07:45 -0500

This will be very hard to do since the time is critical in IMU data. You will also have to simulate the clock!

If you have that data, export the spreadsheet into CSV format. Be sure there are quotes around all the data and that it is correctly formatted.

Plug that into code (C++ or Python) that reads and publishes the data as a Ros topic.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-04-07 23:52:41 -0500

Seen: 195 times

Last updated: Apr 08 '22