RemoteAdapter

master
javadoc

A RemoteAdapter allows other instances of MyRobotLab to connect.  Services and resources can be shared by 2 or more joined instances.  The default communication listener is a UDP server listening on all addresses on port 6767. 

To connect two instances simply start all the services local and then use the RemoteAdapterListener.py script one one host and RemoteAdapterHost.py on the other host.


#file : /service/RemoteAdapterListener.py edit raw
remoteAdapterA = Runtime.createAndStart("RemoteAdapterA","RemoteAdapter")
remoteAdapterA.startListening()


#file : service/RemoteAdapterHost.py edit raw
remoteAdapterB = Runtime.createAndStart("RemoteAdapterB","RemoteAdapter")
# Change to the ip address of the remote host
remoteAdapterB.connect("tcp://192.168.1.95:6767")