ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Running ROS2 in a VirtualBOX VM

asked 2023-08-10 14:40:17 -0600

Rekabuk gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-08-11 02:32:02 -0600

PatoInso gravatar image

updated 2023-08-11 02:32:59 -0600

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 ?)
edit flag offensive delete link more

Question Tools

Stats

Asked: 2023-08-10 14:40:17 -0600

Seen: 1,867 times

Last updated: Aug 11 '23