0
$\begingroup$

Rosanswers logo

Hello

I am working on Some project, I have to store ROS messages in some File using C++ API's. I knew ROS BAG files which is excellent for storing ROS messages But i want to knew Is their any other supported files in ROS to store ROS message using C++ API's. If yes then which one is it ? Can anyone Suggest.

Can I read ROS .bag file in Reverse order ? If yes then how it can be done. Please can anyone tell me.

image:IMAGE !


Originally posted by Aasiya Shaikh on ROS Answers with karma: 21 on 2016-10-26

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

You can use the rosbag C++ api to work with data stored in bag files. Including reverse iterating etch. There's API docs here


Originally posted by tfoote with karma: 58457 on 2016-10-26

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by Aasiya Shaikh on 2016-10-27:
Thanks a lots

$\endgroup$
0
$\begingroup$

Rosanswers logo

Hi,you can store topic messages in files through rostopic echo /topic >>file.txt


Originally posted by Yang with karma: 36 on 2016-10-26

This answer was NOT ACCEPTED on the original site

Post score: 1


Original comments

Comment by Aasiya Shaikh on 2016-10-26:
Okay Thanks. Then please can to tell me how I can read these topic messages through API's as I have to reused this messages , in my program .

Comment by Yang on 2016-10-26:
1.As tfoote said,use rosbag . 2.Print the message in file through standard c++.

Comment by Aasiya Shaikh on 2016-10-27:
Okay Thank you

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.