ROS-Mobile / ROS-Mobile-Android

Visualization and controlling application for Android
464 stars 148 forks source link

Not getting any messages #59

Closed akashpopat closed 3 years ago

akashpopat commented 3 years ago

I've set up a remote ubuntu server with a master and node. The node is continuously publishing random values on a topic /chatter which I can see when I use rostopic echo /chatter. I've connected my Android device to the same LAN by creating a VPN and I can ssh into the server and also connect to the master.

When creating a Debug widget I can see all the topics which are available to subscribe but on subscribing I'm not getting any messages, while using rostopic echo /chatter on the server I can see the messages.

Why is this an issue and am I doing something incorrectly ?

akashpopat commented 3 years ago

Well I tried it locally also and I am facing the same issue. I've set up a roscore and publisher on a raspberry pi and if I rostopic echo /chatter on the raspberry pi I can see the data but on the physic android device I can just see the topics but don't seem to be getting any messages.

The reverse does seem to work, if I add a button and do rostopic echo /btn_press on the raspberry pi it does show true and false correctly.

Is the issue because both the roscore (master) and publisher are on the same device (rpi) ?

akashpopat commented 3 years ago

It was a network configuration issue on the ros node. I followed this thoroughly especially the last few points and it got fixed