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

Store Terminal Output in a File

asked 2021-12-03 14:38:00 -0500

santK gravatar image

updated 2021-12-03 14:38:58 -0500

I have a pcd file with x y z coordinates from point cloud.

Now I have another cpp file from where I print x y z coordinates on terminal. ( This is just the coordinates not a point cloud) I want to store this in another file in order to compare it with pcd file. How do I do it?

edit retag flag offensive close merge delete

Comments

Your problem is not ROS related, but cpp related. Here is a similair question, and here the cpp documentation.

crnewton gravatar image crnewton  ( 2021-12-04 07:49:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
-1

answered 2021-12-07 16:03:18 -0500

GeorgNo gravatar image

You could forward the stdout with tee to a file. See the link

edit flag offensive delete link more

Comments

Hi @GeorgNo, thank you for responding. It's important to provide full answers summarizing the information in the link if possible with an example. Links change and for anyone reading this question in the future needs to be as complete as possible.

osilva gravatar image osilva  ( 2021-12-07 17:40:45 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-12-03 14:38:00 -0500

Seen: 108 times

Last updated: Dec 07 '21