Make ROS talk between two programs
I am asking a general question to which general answers would suffice. As part of a project, I am working on a MATLAB program that does some data analysis on some pre-stored data and outputs numbers. These numbers have to be used by a C++ program to do further processing. The Matlab code works and so does the C++ code.
Now we want to use ROS to allow them to talk in real-time: Matlab sends data to C++ as it is produced on which C++ acts and outputs final result in a specified manner. Can someone please direct me to a coding source where ROS has been used to make a Matlab code talk to C++ code. I am using Ubuntu 16.04 and Matlab R16a.
If someone could chart out a communication architecture and give programming tips to implement it, that would be very helpful. But online references should work too.