Easiest way for non-ROS program to talk to a ROS node
I have a totally ROS-independent application (the "app", say written in python, and launched from the command line) running on the same computer (i.e. the linux instance, with direct access to the same disk). The app has no ROS includes or dependencies. Note that because of this I don't have to rely on http per se.
What is the best/simplest way to have that app to talk to a ROS node? Performance is not an issue as the amount of data going back and forth would be very small. To be specific, the data could be represented in JSON file of a few hundred bytes being sent and received every few seconds.
For example, one way is to read and write a shared file which is very general and generic but not so elegant.
Is it possible to read and write ROS parameters from outside ROS?
What are better ideas?