Robotics StackExchange | Archived questions

ros master and android phone cannot connect

Greetings all,

I'm trying to run the android imagetransport tutorial on my android phone, but the application crashes from the start. There was no error when I run the rosmake on the package or when I exported it to my phone. It seems to me that the rosmaster on my computer and the phone can't communicate. I set ROSIP to the computer (rosmaster) Ip and set ROSMASTERURI too. Roscore is running on the computer also. I don't know what I'm missing for the phone to detect the rosmaster running on the computer and connect to it so that the application doesn't crash from the start. Could you please help me figure it out

Thank you for your help

Asked by rimzahir on 2012-01-01 15:29:16 UTC

Comments

Answers

Did you install the ROS applications platform on your robot? I think it is neccessary to communictate via Android...

See:

http://www.ros.org/wiki/ApplicationsPlatform

Asked by michikarg on 2012-01-01 21:20:56 UTC

Comments

Hmm, unfortunately i did not yet find time to test it myself, maybe you could write to the maintainer of the ApplicationsPlatform ROS package? Sorry i cant be of more help in this case...

Asked by michikarg on 2012-01-03 02:50:35 UTC

Greetings, thank you for your answer. I installed the application that you mentioned from the android market, but it gives me the following message : Cannot contact robot:org.ros.exception.ServiceNotFound . It throws the service not found exception it cannot communicating with the rosmaster either

Asked by rimzahir on 2012-01-02 03:52:34 UTC

  • Have you inspected adb logcat? There could be a stack trace in there that would be helpful.
  • Is the tutorial correctly prompting you to enter the master URI?
  • Can you run the android_tutorial_pubsub successfully?

Asked by damonkohler on 2012-01-05 01:58:11 UTC

Comments

In that case, a stack trace from adb logcat will reveal the problem.

Asked by damonkohler on 2012-01-05 02:34:11 UTC

That's why i think it's a communication problem with the rosmaster not specific to the tutorials. The image_transport tutorial isn't prompting to enter the master URI, it crashes before it gets to this point

Asked by rimzahir on 2012-01-05 02:25:41 UTC

Thank you for your answer. I can't run the android_tutorial_pubsub either, like the image_transport it crashes from the beginning without prompting anything. I tried it with roscore running in my desktop computer, listener in my desktop computer too but the apllication crashed anyway.

Asked by rimzahir on 2012-01-05 02:24:20 UTC