Home | Tutorials | Wiki | Issues
Ask Your Question
0

Information from Topic Visualization to a text file ?

asked 2016-03-10 09:03:41 -0500

Zuygar gravatar image

Is it possible to get information from "Topic Visualization" tool to a text file. For example I want to take values in "gazebo/default/pose/info" topic. Alternatively, can I take this information using c++ and ros ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-10 13:17:20 -0500

You could echo whatever is being published to the topic from the command line and direct that to a file, for example:

gz topic -e /gazebo/default/pose/info > ~/test.txt

Programmatically, you can setup a simple Gazebo subscriber (note this is not a ROS subscriber) which writes to a file, see this tutorial.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-03-10 09:03:41 -0500

Seen: 932 times

Last updated: Mar 10 '16