ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Unable to send messages from the pc back to the node on Android phone.

asked 2011-07-10 14:25:24 -0600

soetommy gravatar image

updated 2014-01-28 17:10:01 -0600

ngrennan gravatar image


I have been using the android package ( ) which uses the SL4A scripting environment on the android phone to execute scripts. The package allows successful connection with the roscore running on the host pc.

The test node created by the package can publish onto topics and the computer can receive it. However, the package cannot receive messages which are published onto topics by the computer.

A look at the problem showed that if you ran a second script to create another test node that publishes onto the topic the first test node is subscribed to, the first test node responds correctly. Therefore, I guess it is the problem with the data not being transferred successfully back to the script.

Please advise on how I can possibly configure this.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-11 06:21:37 -0600

adasta gravatar image

Hi Soe, my bet is the problem is a networking issue. Your computer is probably using a hostname that the phone cannot resolve. If you set the ROS_IP on the computer or set up a DNS that the phone can use, you should be ok.

edit flag offensive delete link more


The ROS concept was working very well so I thought the networking might need some changes to the configurations, but was not sure how to proceed. Thanks for the idea; I'll try it out.
soetommy gravatar image soetommy  ( 2011-07-11 06:35:16 -0600 )edit

Question Tools


Asked: 2011-07-10 14:25:24 -0600

Seen: 895 times

Last updated: Jul 11 '11