Closed talregev closed 3 years ago
Since I managed to get the pubsub example running with out any issues you might want to check if you setup the name resolution on your computer that is running roscore.
You might also want to check logcat if you get any network related errors or warnings, e.g. that the host could not be resolved.
@talregev I was going to suggest the same.
Try setting ROS_IP
environment variable on the computer running roscore
. It's likely that the Android device is not being able to resolve the hostname, so forcing the IP address might solve the problem.
Let us know if that works!
Thanks for your quick response!
I try with ROS_IP to give roscore the computer ip.
Also try to create roscore on the phone. It connect but still the computer did not receive messages.
Not sure what i am doing wrong.
can you do rostopic info /chatter
to see who's publishing and subscribing to the topic? This sounds like a common network issue.
It works also with melodic!
For me it only work when I use hotspot with computer and phone.
When computer and phone connect to the same router (network),
it does not work for me. not sure how to fix it.
Are you testing it in your own home network or at work? It could be possible that some ports get blocked in the network that you are connecting to due to security reasons.
If you haven't already please check logcat for any network related errors or warnings.
I am using my home network.
Not sure where is the problem in my network.
Right now I am not near my network, So when I try again, I will post my attempts.
For now I have workaround.
Thanks for yours help! :)
It happen also in ros images messages. Here I am show simple way to reproduce the problem.
roscore
on computerrostopic echo /chatter
expected to see ros messages hello world.
did not receive any messages.