Robotics StackExchange | Archived questions

Running ROS2 in a VirtualBOX VM

Hi, I am trying to run ROS2 under Ubuntu 22-04 on a Win10 hosted VirtualBox VM. Whilst ROS2 is running happily and can find all topics on the local machine it cannot find the topics being exported by my RPi ROS2 robot.

The Linux VM firewall reports "status: inactive"

I have tried different VM network settings and although I can ssh to my RPi, ROS2 seems unable to communicate.

Is there a simple fix for this, or should I just give up now? :-(

Regards Andrew

Asked by Rekabuk on 2023-08-10 14:40:17 UTC

Comments

Answers

Things I generally check and try in such case:

  1. Use "Bridged mode" for the Network Interface in VirtualBox
  2. Check that your VM and the RPI are on the same network
  3. Check that both machines are on the same ROS_DOMAIN_ID
  4. Machines can ping each others
  5. (Since I've change my modem I can no more discover topics on other machine reliably. Seems the DDS discovery fails with my new modem, with CycloneDDS and ros2 Humble, and VirtualBox. I've not find a fix yet. Maybe try with other internet boxes/modem/routers ?)

Asked by PatoInso on 2023-08-11 02:32:02 UTC

Comments