Hi,
has anyone of you ever tried to display a message genereated in RQT Message Publisher on your Android Device?
I managed to publish a message and to display this message.
But when i comment the code of my talker and have the message generated by RQT, i can see the TextView-Node in Node Graph, but there is no Text in my Android Device. I have the same problem when i am playing the messages from a rosbag.
Did someone display a message from a recorded rosbag?
Figured out, that the problem is that the Runnable in the subscriber cant register.
So inside the RosTextview
post(new Runnable() {
@Override
public void run() {
//log.info("I heard: \"" + message.toString() + "\"");
setText(callable.call(message));
}
E/UpdatePublisherRunnable﹕ java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "Ubuntu-Test": No address associated with hostname
08-11 10:50:00.882 6403-6460/org.ros.android.android_tutorial_pubsub I/Registrar﹕ Response<Success, Subscribed to [/chatter], [http://Ubuntu-Test:41145/]>
08-11 10:50:00.897 6403-6498/org.ros.android.android_tutorial_pubsub I/DefaultPublisher﹕ Subscriber registered: Subscriber<Topic<TopicIdentifier</chatter>, TopicDescription<std_msgs/String, 992ce8a1687cec8c8bd883ec73ca41d1>>>
08-11 10:50:00.897 6403-6501/org.ros.android.android_tutorial_pubsub I/Registrar﹕ Response<Success, Subscribed to [/topic_lanes_available], [http://192.168.0.199:48304/]>
08-11 10:50:00.897 6403-6497/org.ros.android.android_tutorial_pubsub I/DefaultPublisher﹕ Subscriber registered: Subscriber<Topic<TopicIdentifier</topic_lanes_available>, TopicDescription<std_msgs/Int32, da5909fbe378aeaf85e547e830cc1bb7>>>
08-11 10:50:00.902 6403-6504/org.ros.android.android_tutorial_pubsub I/Registrar﹕ Response<Success, Subscribed to [/chatter], [http://Ubuntu-Test:41145/]>
08-11 10:50:00.902 6403-6426/org.ros.android.android_tutorial_pubsub I/DefaultPublisher﹕ Subscriber registered: Subscriber<Topic<TopicIdentifier</chatter>, TopicDescription<std_msgs/String, 992ce8a1687cec8c8bd883ec73ca41d1>>>
08-11 10:50:00.912 6403-6501/org.ros.android.android_tutorial_pubsub E/UpdatePublisherRunnable﹕ java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "Ubuntu-Test": No address associated with hostname
08-11 10:50:00.917 6403-6515/org.ros.android.android_tutorial_pubsub E/UpdatePublisherRunnable﹕java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "Ubuntu-Test": No address associated with hostname
i exported to 192.168.0.95:4711 and this is where the app is connecting
solved with help from gvdhoorn
export ROS_MASTER_URI=http://192.168.0.95:4711/
export ROS_IP=192.168.0.95
roscore -4711
connecting in the app to http://192.168.0.95
in a new window
doing same export
rqt
publishing messages
Please clear out any cached data on the android device (app properties, clear all local data). Open new terminals on your desktop. Redo the steps. Your android device should not give you the same "unable to resolve" error if you're not using hostnames.
Originally posted by stefan on ROS Answers with karma: 15 on 2014-08-08
Post score: 0