0
$\begingroup$

Rosanswers logo

Hi, I have installed the android_tutorial_pubsub on android device and able to connect to roscore on my computer (I see the chatter topic in the topic lists). I run a Talker node on my computer and see the data publish to the chatter topic correctly. However, the rosTextView node on my android device doesnt show anything.

Do you know how to publish data to a node on android device?

Thanks in advance.


Originally posted by Gosu on ROS Answers with karma: 22 on 2013-03-31

Post score: 0


Original comments

Comment by PeterMilani on 2013-04-02:
can you run rxgraph and see that both your rosTextView and talker node both appear?

Comment by Gosu on 2013-04-04:
Yes, both the node appear, but my talker node only publish to /rostopic.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

In android_tutorial_pubsub, the NodeConfiguration is private. Nodes on your PC will not be able to communicate with those on your Android device.

Try changing the NodeConfiguration to a public one. See the NodeConfiguration.newPublic documentation.


Originally posted by damonkohler with karma: 3838 on 2013-04-04

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by Gosu on 2013-04-04:
I have tried but no luck, the rosTextView node still doesnt receive anything

Comment by damonkohler on 2013-04-04:
Check your ROS_IP and ROS_MASTER_URI settings. Also check the host string you're using in your NodeConfiguration.

Comment by Gosu on 2013-04-04:
Thank you very much! Its worked! I forgot to set ROS_IP and ROS_MASTER_URI variables

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.