rosjava subscriber to c++ publisher [closed]
Setup: 1 publisher written in C++. 1 subscriber written in Java running on a different machine.
Problem: When running a java subscriber with a C++ publisher I frequently get XmlRpcTimeout error messages every ten seconds or so regardless of how much data has been received. Often the process will continue but then completely stop after some time. The data being passed is large image data (roughly 1MB per image) using a customised image message to carry specific metadata.
System out:
21-Feb-2013 15:19:27 org.ros.internal.node.topic.UpdatePublisherRunnable run SEVERE: org.ros.internal.node.xmlrpc.XmlRpcTimeoutException: org.apache.xmlrpc.client.TimingOutCallback$TimeoutException: No response after waiting for 10000 milliseconds.
Followed ten seconds later by:
21-Feb-2013 15:19:38 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect 21-Feb-2013 15:19:38 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: Retrying request
This does not occur when using C++ to C++ or Java to Java. It only occurs when going from C++ to Java.
Any help would be much appreciated!