pyros-dev / pyros

Python interfacing for multiprocess software - A Python blanket for ROS to hide inside
BSD 3-Clause "New" or "Revised" License
25 stars 4 forks source link

Allow multi clients, instantiable any time, from anywhere, with minimum info. #63

Open asmodehn opened 8 years ago

asmodehn commented 8 years ago

From a web app ( and from any client code ) , it s simpler if we can just instantiate a client anytime, in any context, to connect to a server ( for which we have a known configuration, ie hostname:port or some similar URL, defined in a config file ).

Currently we have one client setup when using the context manager, that we need to copy around and keep in context. This came to be because of our old pipe that we used as a communication channel.

Now that we are using our internal ZMP ( ZMQ comm channels ) we can improve the design to allow users to create client anytime, provided they know how to access the server process(node name - or maybe we should directly expose and use ZMQ URLs).