Ask Your Question
0

Connecting android_tutorial_pubsub from Android device to PC

asked 2012-04-02 07:59:37 -0500

amigo gravatar image

updated 2014-01-28 17:11:50 -0500

ngrennan gravatar image

I can't seem to connect to the PC from an Android device running android_tutorial_pubsub.

I changed it so that android_tutorial_pubsub is not running it's own ROS master as per: http://answers.ros.org/question/30726/does-android_tutorial_pubsub-connect-to-other-ros

I use ifconfig to get the IP on the Ubuntu VM (running on a Mac), but when I ping that address from adb shell, it says that it's unreachable.

Also, adb logcat tells me:

E/Registrar(21222): Exception caught while communicating with master.
I/DefaultPublisher(21222): Publisher registration failed: Publisher<publisherdefinition<publisheridentifier<nodeslaveidentifier< android_gingerbread="" ros_text_view,="" <a="" href="http://192.168.0.116:42837">http://192.168.0.116:42837>, TopicIdentifier</rosout>>, TopicDefinition<topicidentifier< rosout="">, MessageDefinition<rosgraph_msgs log,="" acffd30cd6b6de30f120938c17c593fb="">>>>

Am I missing a step somewhere or using the wrong URI?

Edit: I've seen posts about setting ROS_IP and I tried that too (set in .bashrc).

Edit: The problem was with VMWare Fusion. It was a networking setting. In VMWare, select the wrench icon for the VM, then choose "Network Adaptor" and then "Connect Directly to the Physical Network (Bridged)". Now I can ping and the publisher on the android device can send to the ros master on the VM. Yay!

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-04-03 13:15:38 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

From @amigo: The problem was with VMWare Fusion. It was a networking setting. In VMWare, select the wrench icon for the VM, then choose "Network Adaptor" and then "Connect Directly to the Physical Network (Bridged)". Now I can ping and the publisher on the android device can send to the ros master on the VM. Yay!

edit flag offensive delete link more

Comments

Amigo, could you mark the question as answered by selecting this answer as correct?

Wim gravatar imageWim ( 2012-04-04 07:49:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-04-02 07:59:37 -0500

Seen: 1,704 times

Last updated: Apr 04 '12