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

Unknown Host Exception Error occurs

asked 2018-10-30 05:50:40 -0500

bhattarairazu gravatar image

updated 2018-10-30 05:51:18 -0500

gvdhoorn gravatar image

I was able to subscribe and publish a message from ros computer to android apps without any errors.When i tried to connect to ros master uri , it connects successfully but i could not received message from ros computer to android apps.

When i saw logcat it says:

UpdatePublisherRunnable: java.lang.RuntimeException: java.net.UnknownHostException: paaila-MS-7A15.

What might be the error ?Could anybody help me?

edit retag flag offensive close merge delete

Comments

Is paaila-MS-7A15 a hostname that can be resolved by the network's DNS server?

If not: that is your problem.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-30 15:53:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-23 03:22:07 -0500

To debug this problem you can check the topic that you are publishing and subscribing to by using

rostopic info /topic_name

If you see that the address in front of the subscriber node and publisher node is not the same which i am guessing in your case for publisher node will be something like http://paaila-MS-7A:xxxxx and for subscriber node will be an ip-adress then that is your problem. To resolve this, in case you are publishing from a terminal on your pc, try running

export ROS_IP="your machine's ipaddress"

and then the "rostopic pub" command in the same terminal window and your android device subscribing to this topic should receive the message.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-30 05:50:40 -0500

Seen: 297 times

Last updated: Apr 23 '19