error on connecting gazebo with android app [closed]

asked 2012-05-18 02:49:43 -0600

Kat gravatar image

Hi

We have an Android application to control a robot. We don't have a robot so we need to work with the simulator. We made a program where the usb_cam sends messages to the tablet. We started a rosmaster for this with roscore. This works perfectly. Now we want to connect with the gazebo simulator but the moment our program makes a node to connect with the rosmaster of the simulator it crashes. We only run the gazebo simulator without a roscore since the simulator starts a master itself.

05-18 14:41:31.240: E/UpdatePublisherRunnable(4990): java.lang.RuntimeException: java.net.ConnectException: failed to connect to /192.168.1.103 (port 35072) after 60000ms: isConnected failed: ECONNREFUSED (Connection refused)

05-18 14:41:42.310: E/AndroidRuntime(4990): java.lang.NullPointerException
05-18 14:41:42.310: E/AndroidRuntime(4990):     at org.ros.time.ClockTopicTimeProvider$1.onNewMessage(ClockTopicTimeProvider.java:45)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at org.ros.time.ClockTopicTimeProvider$1.onNewMessage(ClockTopicTimeProvider.java:42)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:77)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at org.ros.internal.transport.IncomingMessageQueue$Dispatcher$1.run(IncomingMessageQueue.java:74)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at org.ros.concurrent.ListenerCollection$1.run(ListenerCollection.java:117)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
05-18 14:41:42.310: E/AndroidRuntime(4990):     at java.lang.Thread.run(Thread.java:856)

Can someone help us?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-03 01:41:57.554927

Comments

Hi I was able to run the simulator by starting roscore, then starting the app and then the simulator. Then I can run it but it crashes the moment a node is shut down.

Kat gravatar image Kat  ( 2012-05-22 22:35:37 -0600 )edit

Please ask gazebo questions on http://answers.gazebosim.org

tfoote gravatar image tfoote  ( 2015-03-03 01:41:37 -0600 )edit