Run ROS2 on Multiple Machines (ROS_DOMAIN_ID explained)

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 25

  • @christophekumsta522
    @christophekumsta522 Год назад +6

    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.

  • @edubob3012
    @edubob3012 Год назад +7

    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.

  • @nerevarine87
    @nerevarine87 Год назад

    Simple and well-explained, thank you.

  • @gxbmb
    @gxbmb Год назад +13

    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

    • @21area21
      @21area21 5 месяцев назад

      Same issue I'm running into. Did you ever figure it out?

    • @featherfiend9095
      @featherfiend9095 23 дня назад

      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).

    • @featherfiend9095
      @featherfiend9095 23 дня назад

      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!

  • @minhducvu8282
    @minhducvu8282 Год назад +1

    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.

  • @petebaker5369
    @petebaker5369 2 месяца назад

    Hi, is it possible to do this between a windows and a linux pc?

  • @dprobotix
    @dprobotix Год назад

    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 ?.

  • @matheusdantas8255
    @matheusdantas8255 Год назад

    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.

    • @RoboticsBackEnd
      @RoboticsBackEnd  Год назад +1

      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

  • @maguirekrist4033
    @maguirekrist4033 Год назад +1

    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?

    • @RoboticsBackEnd
      @RoboticsBackEnd  Год назад

      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.

    • @Dawsatek22
      @Dawsatek22 Год назад

      @@RoboticsBackEnd how do remove ros domain id ?

    • @Ali_AKB_GH
      @Ali_AKB_GH Год назад +1

      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/

    • @Dawsatek22
      @Dawsatek22 Год назад

      @@Ali_AKB_GH thank you i solved the problem it was the firewall that gave me troubles

  • @TasosManolidis
    @TasosManolidis Год назад

    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

    • @RoboticsBackEnd
      @RoboticsBackEnd  Год назад

      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?

    • @TasosManolidis
      @TasosManolidis Год назад

      @@RoboticsBackEnd first I tried that after o check with rqt and then with pink but no response

    • @brockmarks3984
      @brockmarks3984 Год назад

      I have same issue, anyone have a solution?

    • @TasosManolidis
      @TasosManolidis Год назад

      @@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

    • @Dawsatek22
      @Dawsatek22 Год назад

      have you turned the firewall on or set it up to deny incoming status ?