Ask Your Question

Networking with raspberry pi, silent topic [closed]

asked 2020-12-06 11:09:05 -0600

BGI gravatar image

updated 2020-12-06 11:52:51 -0600


I've recently bought a Raspberry Pi 4. And I really want to use it to control my own robots. But for most applications I would like to have my Ubuntu virtual machine serve as a GUI for my robot. Therefore I need to have a working ROS network between my VM and my RasPi. All the instructions on the ROS Networking tutorial have been followed and I can ping and netcat between both machines. Since I don't have access to the tutorial's listener and talker on my RasPi I figured I could just use some basic rostopic commands to try out my setup. But when I attempt to echo a topic, this topic remains silent.

On my master device I have ran



rostopic pub -r 1 /plop std_msgs/String -- 'Hello slave'

both in separate terminals, of course.

On the slave side the master URI has been set :


And I can see the /plop topic :

bgi@ubuntu-VB:~$ rostopic list

But when trying to listen to it, there's no message :

rostopic echo /plop

Bot my virtual machine and my Raspberry Pi are running ROS melodic and they can ping and netcat each other. Has anybody an idea of what is going on here, why can I see a topic but not listen to it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-12-06 11:19:26 -0600

130s gravatar image

In ROS1, on client hosts (of a host where ROS Master runs on), setting ROS_MASTER_URIis required but not sufficient. Review "Name resolution" section in I'd say ROS_HOSTNAME and/or ROS_IP are minimum requirement.

edit flag offensive delete link more


Thank you for your quick reply. That actually worked. I added both on both sides and now it runs properly.

BGI gravatar image BGI  ( 2020-12-06 11:48:16 -0600 )edit

If anybody else runs into this issue it was just a matter of adding ROS_IP on the master side.

BGI gravatar image BGI  ( 2020-12-06 11:53:53 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-12-06 11:09:05 -0600

Seen: 58 times

Last updated: Dec 06 '20