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

how can I save a msg to a file [closed]

asked 2013-03-13 23:37:35 -0500

RosRos gravatar image

I want to save a trajectory_msgs. How can I do that?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Miquel Massot
close date 2015-06-25 02:50:02.184167

2 Answers

Sort by ยป oldest newest most voted

answered 2013-03-14 02:10:30 -0500

Miquel Massot gravatar image

If you want to save a particular text message directly to a file you can do

rostopic echo -p /your_topic/goes/here > /path/to/your/file

you won't see any ouptut here, but in your file you'll see the message in a CSV format.

edit flag offensive delete link more

answered 2013-03-14 01:58:42 -0500

Thomas gravatar image

Just record the topic using rosbag.

Then replay the message(s) or analyze them off-line using rxbag or the rosbag API.

edit flag offensive delete link more

Question Tools


Asked: 2013-03-13 23:37:35 -0500

Seen: 3,077 times

Last updated: Mar 14 '13