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

aurora18's profile - activity

2018-09-14 03:02:33 -0500 received badge  Famous Question (source)
2017-10-21 15:05:12 -0500 received badge  Notable Question (source)
2017-10-20 11:32:11 -0500 marked best answer PubSub tutorial: Android device doesn't receive messages published by PC [solved]

Hey Dear ROS Community, I'm currently building a custom App to control my robot. Therefore I'm testing the PubSub tutorial provided by the android_core package: https://github.com/rosjava/android_core

Now if I connect my Android device to the ROS Master running on my PC and listen to the /chatter topic on my PC I receive the incoming "Hello World" messages sent by the talker node on my android device. However, if I publish a String message on my PC to the same topic it gets only displayed on the terminal running "rostopic echo /chatter" while the RosTextView on the android device only displays the messages published by the talker node but not what is published by my PC.

Running "~ rostopic info /chatter" delivers

Type: std_msgs/String 

Publishers:  
* /rosjava_tutorial_pubsub/talker (http://192.168.1.102:57888/) 

Subscribers:  
* /android_gingerbread/ros_text_view (http://192.168.1.102:45315/)

Running ~ rosnode ping /android_gingerbread/ros_text_view  delivers

rosnode: node is [/android_gingerbread/ros_text_view] 
pinging /android_gingerbread/ros_text_view with a timeout of 3.0s 
xmlrpc reply from http://192.168.1.102:45315/   time=358.101130ms 
xmlrpc reply from http://192.168.1.102:45315/   time=124.948978ms 
xmlrpc reply from http://192.168.1.102:45315/   time=329.936981ms

So everything seems to be setup fine however the the RosTextView node doesn't react to messages published by my PC. It seems like a network issue.

Related posts suggested to create a publicly accessible nodeConfiguration via

NodeConfiguration nodeConfiguration = NodeConfiguration.newPublic(InetAddressFactory.newNonLoopback().getHostAddress().toString(), masterUri);

which is already the case in the current pubsub tutorial.

Does somebody of you know how to fix this problem?

Thanks in advance!

2017-10-20 10:45:05 -0500 received badge  Popular Question (source)
2017-10-20 10:35:39 -0500 edited question PubSub tutorial: Android device doesn't receive messages published by PC [solved]

PubSub tutorial: Android device doesn't receive messages published by PC Hey Dear ROS Community, I'm currently building

2017-10-20 10:35:01 -0500 commented question PubSub tutorial: Android device doesn't receive messages published by PC [solved]

Thank you so much!! Setting the ROS_IP solved my Problem! I tried that before but obviously changed to another terminal

2017-10-20 09:24:58 -0500 asked a question Pubsub tutorial: Android device doesn't receive messages published by PC

Pubsub tutorial: Android device doesn't receive messages published by PC Hey Dear ROS Community, I'm currently building

2017-10-20 09:24:57 -0500 asked a question PubSub tutorial: Android device doesn't receive messages published by PC [solved]

PubSub tutorial: Android device doesn't receive messages published by PC Hey Dear ROS Community, I'm currently building