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

Rviz data Saving format

asked 2016-07-04 12:06:15 -0500

btaher20 gravatar image

updated 2016-07-05 02:40:27 -0500

gvdhoorn gravatar image

Hi I would like to know how to save Rviz results in text file or any other format.Could any body give me feedback.

Screenshot from 2016-06-24 11_44_20.png

I want to save these x,y,z and alpha,beta,ghamma results as a text file.

Could any body let me know how can I do that

Best
TaherScreenshot from 2016-06-24 11_44_20.png(/upfiles/14676522631575838.png)


Edit: Hello Janidu I used quite a long time where exactly I can find these option to solve this problem .Yes It will not be automatically saved Markers pose.I have to give command or time steps to save my Markers Pose I means How Can I do that. I carefully checked Rviz user manual and other options but did not find yet the way to save pose results in text file or any format. Would you mind to give link or any thing that I should maintain. I am using ROS Indigo.

edit retag flag offensive close merge delete

Comments

You can't do it in Rviz. Simple as that. Identify what data you want to save first. Then identify which topics these data are published to. Then save it to a rosbag or pipe as Felix has said. I hope it's clear?

janindu gravatar image janindu  ( 2016-07-05 23:28:47 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2016-07-04 19:35:44 -0500

janindu gravatar image

Rviz just displays results, right? I don't think it computes those results by itself (please correct me if I'm wrong). So what you can do is, finding out the topics that publish your marker poses and record them in rosbags.

edit flag offensive delete link more
0

answered 2016-07-05 03:35:40 -0500

updated 2016-07-05 03:36:24 -0500

Janindu is right, rviz is just meant to visualize, not save results, even if it computes the transformations for the visualization.

You should look for the topic which you use to visualize the data in rviz. As janindu says, you can store this data in ros bags, or just pipe them to a text file with rostopic echo /yourtopic > yourfile

If it is about transformations (e.g. poses of the markers), check out the tf command line tools.

edit flag offensive delete link more
0

answered 2016-07-05 05:03:53 -0500

btaher20 gravatar image

Hello I got Transformation+ Rotation results With rostopic Screenshot from 2016-07-05 11:51:10.png

.But I want these results in a file or in text or any other format to use further.

Best Taher

edit flag offensive delete link more

Comments

Either store it via recording the topic /tf into a bagfile or just pipe it into a file: rosrun tf tf_echo /marker /camera > filename.txt. The former is probably easier to use.

Felix Endres gravatar image Felix Endres  ( 2016-07-05 08:34:06 -0500 )edit
0

answered 2016-08-18 15:24:08 -0500

ms0719584 gravatar image

Your question is quite similar to what I am working on right now. I also need to store some data in rviz into a file. So here is what I'll do:

Those positions and orientations in the display panel in your screenshot are just child classes of rviz::Property. So a bit of a roundabout way is to create a simple panel similar to this tutorial with a single 'save' button. And use rviz::YamlConfigWriter class to save it as a YAML file.

You'll have to dive into the rviz documentations a bit though.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-07-04 12:06:15 -0500

Seen: 1,523 times

Last updated: Aug 18 '16