Error communicating ros android client with a c++ service [closed]

asked 2013-02-25 02:03:40 -0500

Rocha gravatar image

updated 2014-01-28 17:15:24 -0500

ngrennan gravatar image

Hello everyone,

I'm trying to communicate a ros android client with a c++ service running on PC. But when the service client is being created there are some issues.

02-25 10:49:33.618: E/AndroidRuntime(331): FATAL EXCEPTION: pool-1-thread-4
02-25 10:49:33.618: E/AndroidRuntime(331): org.ros.exception.RosRuntimeException: Connection exception: rocha-Inspiron-5423/92.242.140.20:58975
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.transport.tcp.TcpClient.connect(TcpClient.java:109)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.transport.tcp.TcpClientManager.connect(TcpClientManager.java:69)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.node.service.DefaultServiceClient.connect(DefaultServiceClient.java:135)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.node.service.ServiceFactory.newClient(ServiceFactory.java:144)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.node.DefaultNode.newServiceClient(DefaultNode.java:365)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.node.DefaultNode.newServiceClient(DefaultNode.java:372)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.android.android_tutorial_pubsub.EnviaDadosClient.onStart(EnviaDadosClient.java:30)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.node.DefaultNode$5.run(DefaultNode.java:506)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.internal.node.DefaultNode$5.run(DefaultNode.java:503)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.concurrent.EventDispatcher.loop(EventDispatcher.java:43)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.ros.concurrent.CancellableLoop.run(CancellableLoop.java:56)
02-25 10:49:33.618: E/AndroidRuntime(331):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
02-25 10:49:33.618: E/AndroidRuntime(331):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
02-25 10:49:33.618: E/AndroidRuntime(331):  at java.lang.Thread.run(Thread.java:1019)
02-25 10:49:33.618: E/AndroidRuntime(331): Caused by: java.net.ConnectException: connection timed out
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:391)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:289)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
02-25 10:49:33.618: E/AndroidRuntime(331):  at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
02-25 10:49:33.618: E/AndroidRuntime(331):  ... 3 more
02-25 10:49:33.628: E/nnectionTrackingHandler(331): Channel exception: java.net.ConnectException: connection timed out

I already tryied to delete the /etc/hostname archive, but when i did this even the registration with /rosout failed.

Someone has any idea how to solve this problem?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-10-30 17:59:50.007244