Ask Your Question

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


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

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


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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 39 times

Last updated: Dec 07 '21