Hello, I discovered your courses through Udemy (ROS2 for beginners) and it's been the best experience I ever got! Thank you for sharing all that. Christophe.
If you are stuck, I initially could only get pinging to work from both computers, one pc was vm with ubuntu and the other an actual pc with ubuntu. In vm turns out the networking connection must be Bridged. then in both Pcs you have to disable firewall within ubuntu by Sudo ufw disable. The ros2 talker listener should work then after. Also on windows that my vm with ubuntu is on, in Mcaffee if you have it installed it will block the ping requests so disable the mcaffee firewall.
hmmm, not sure why it doesnt work for me, my ping test worked for both machines, the listener is not receiving anything though one machine is VM, the other is raspberry pi
I just did one thing: on both machines I ran the command in Ubuntu: sudo ufw disable When I ran both the listener and talker again it worked (the listener can receive the messages from the talker).
Basically the firewall is what is preventing the communication so you have to disable it. However, I bet this could be a security issue in a production setting so I’m sure there is a more secure solution. But for hobbyist purposes this should be good enough. I hope this helps!
Have you modified something to the network setting in the Oracle VM? I can't repeat this tutorial successfully. Furthermore, the command "ros2 multicast listener" executed without any feedback in both pc and companion computer.
hi, how does it work if you connect two computers directly via ethernet cable, I tried few days looking at the Issue, I could not make it work , do you have an idea ?.
In this case you use the oracle VM. There is a way to do the same thing with wls2 that you showed in the last video? I've tried before by myself and could not connect the wsl2 and my other notebook.
Good question! And from what I found on the Internet it does not seem that trivial to do. Here's something to start with: superuser.com/questions/1622598/wsl2-172-xxx-xxx-xxx-ip-address-thing
I've spent 12 hours trying to debug my connection issues, still not results. I've verified the pinging and the IPs network prefix matches, same ROS_DOMAIN_ID, same ROS2 distribution, and I get nothing. What could be wrong?
Hard to say, but yes probably a network issue. You can try first without setting ROS_DOMAIN_ID at all, and if the 2 machines cannot communicate with ROS2, then try to fix the network.
you need to disable ufw or on each machine running ROS, allow udp multicast in ufw. Check this answers.ros.org/question/300370/ros2-talker-cannot-communicate-with-listener/
Good afternoon i try to Connect mine and test with Ping and the problem is i found only the raspi 4 via Ubuntu and virtual box to windows 10(like your amazing course for ros2) but from raspi can’t fint nothing I try also the ufw but nothing what else can I check
If you can ping from your computer to your Raspberry Pi it should also work the other way around. Maybe just try to start some nodes and see if the communication works?
Hello, I discovered your courses through Udemy (ROS2 for beginners) and it's been the best experience I ever got!
Thank you for sharing all that.
Christophe.
Thank you Christophe!
Agreed!!!
If you are stuck, I initially could only get pinging to work from both computers, one pc was vm with ubuntu and the other an actual pc with ubuntu. In vm turns out the networking connection must be Bridged. then in both Pcs you have to disable firewall within ubuntu by Sudo ufw disable. The ros2 talker listener should work then after. Also on windows that my vm with ubuntu is on, in Mcaffee if you have it installed it will block the ping requests so disable the mcaffee firewall.
Simple and well-explained, thank you.
hmmm, not sure why it doesnt work for me, my ping test worked for both machines, the listener is not receiving anything though one machine is VM, the other is raspberry pi
Same issue I'm running into. Did you ever figure it out?
I just did one thing: on both machines I ran the command in Ubuntu:
sudo ufw disable
When I ran both the listener and talker again it worked (the listener can receive the messages from the talker).
Basically the firewall is what is preventing the communication so you have to disable it. However, I bet this could be a security issue in a production setting so I’m sure there is a more secure solution. But for hobbyist purposes this should be good enough. I hope this helps!
Have you modified something to the network setting in the Oracle VM? I can't repeat this tutorial successfully. Furthermore, the command "ros2 multicast listener" executed without any feedback in both pc and companion computer.
Hi, is it possible to do this between a windows and a linux pc?
hi, how does it work if you connect two computers directly via ethernet cable, I tried few days looking at the Issue, I could not make it work , do you have an idea ?.
In this case you use the oracle VM. There is a way to do the same thing with wls2 that you showed in the last video?
I've tried before by myself and could not connect the wsl2 and my other notebook.
Good question! And from what I found on the Internet it does not seem that trivial to do. Here's something to start with: superuser.com/questions/1622598/wsl2-172-xxx-xxx-xxx-ip-address-thing
I've spent 12 hours trying to debug my connection issues, still not results. I've verified the pinging and the IPs network prefix matches, same ROS_DOMAIN_ID, same ROS2 distribution, and I get nothing. What could be wrong?
Hard to say, but yes probably a network issue. You can try first without setting ROS_DOMAIN_ID at all, and if the 2 machines cannot communicate with ROS2, then try to fix the network.
@@RoboticsBackEnd how do remove ros domain id ?
you need to disable ufw or on each machine running ROS, allow udp multicast in ufw.
Check this
answers.ros.org/question/300370/ros2-talker-cannot-communicate-with-listener/
@@Ali_AKB_GH thank you i solved the problem it was the firewall that gave me troubles
Good afternoon i try to Connect mine and test with Ping and the problem is i found only the raspi 4 via Ubuntu and virtual box to windows 10(like your amazing course for ros2) but from raspi can’t fint nothing I try also the ufw but nothing what else can I check
If you can ping from your computer to your Raspberry Pi it should also work the other way around. Maybe just try to start some nodes and see if the communication works?
@@RoboticsBackEnd first I tried that after o check with rqt and then with pink but no response
I have same issue, anyone have a solution?
@@brockmarks3984 hi if you using virtual machine is not working I do t know why but I test with laptop with Ubuntu installed is working fine
have you turned the firewall on or set it up to deny incoming status ?