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

Revision history [back]

click to hide/show revision 1
initial version

The easiest way to do that is open rqt_bag and then open all bag files you want to merge. If there are all in sequence, you will wacht them all together one after other. Then you only have to save as in the place you want and you will have your merged bagfile.

In order to analyce with matlab I do the next steps:

rostopic echo "topic_name" -b "bag_name" -p > "file.csv"

This will create a csv, then import the data in matlab.

If you want to know only the time lapse and not the final value of time, I divide VarName1 (wich is the current time sec+nsec)

time = VarName1 / 10⁹ time = time - time[0] --> this is the first element in the time array in seconds.

Then you have your time variable in lapse time and not in total amount format.

The easiest way to do that is open rqt_bag and then open all bag files you want to merge. If there are all in sequence, you will wacht them all together one after other. Then you only have to save as in the place you want and you will have your merged bagfile.

In order to analyce with matlab I do the next steps:

rostopic echo "topic_name" -b "bag_name" -p > "file.csv"

"file.csv"

This will create a csv, then import the data in matlab.

If you want to know only the time lapse and not the final value of time, I divide time

VarName1 (wich is the current time sec+nsec)

time = VarName1 / 10⁹
time = time - time[0] --> this is the first element in the time array in seconds.

seconds.

Then you have your time variable in lapse time and not in total amount format.