ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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 > 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 Then you have your time variable in lapse time and not in total amount format.