rosjava android - error communicating with phone node

asked 2012-11-27 17:20:47 -0600

updated 2014-01-28 17:14:24 -0600

ngrennan gravatar image

This question is similar to

http://answers.ros.org/question/11705/rosjava-android-phone-sends-localhost/

however when the phone nodes are connected in roscore, visible in rxgraph, they fail to provide any information about themselves, they give ERROR:Communication with node [http://dddd?] failed!

Now the publisher on my phone can send messages on topics to my gazebo_node no problems. But I'd like to be able to have a fully functioning connection.

I had a problem with netcat communicating between a terminal app on my phone and on my linux machine. In that the linux machine had its connection refused when trying to send data to the android phone. (it worked the other way though).

My question is, is this important? and does anyone know how to fix it? My best guess is that it is a firewall issue on the phone. but as I don't have root access on the phone, i cant change. Or is it more of an ROS issue?

Peter

edit retag flag offensive close merge delete

Comments

This is more of an intermittent problem now, the node usually starts up well but sometimes migrates to the state above.

PeterMilani gravatar imagePeterMilani ( 2012-11-28 14:13:57 -0600 )edit

Make sure your NodeConfiguration is public as suggested in the post you linked to. You can use NodeConfiguration.newPublic() http://code.google.com/p/rosjava/source/browse/rosjava/src/main/java/org/ros/node/NodeConfiguration.java?r=22fc23551d916940da8b02c28674356da6bc222f#117

damonkohler gravatar imagedamonkohler ( 2013-01-01 09:40:18 -0600 )edit