Rosjava subscriber doesn't get any data
I'm trying to use a rosbag as a topic publisher to receive the data on my phone and update the info I have on my app. I've been looking around and I think the main issue is this console output:
E/UpdatePublisherRunnable: java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "mypcname": No address associated with hostname
Im playing a rosbag from my pc and made sure the topic is working. I used the debug of android studio and the subscriber gets setted properly, but when I should receive the message the onNewMessage never triggers. I have setted up the ROS_MASTER_URI, ROS_IP and ROS_HOSTNAME correctly on my pc.
Not sure what to do to solve this and couldn't find a proper answer anywhere. Thanks in advance.
I do not have a solution but have you...
[1] ..run a 'IsPortOpen' before the error exception. [2] ...called addMessageListener(MessageListener<t!> { ... prior to onNewMessage ?
Please post your
EDIT
as an answer and accept your own answer.I can't accept my own answer, a pop-up says 10 points are required