Store Terminal Output in a File
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?
Your problem is not ROS related, but cpp related. Here is a similair question, and here the cpp documentation.