Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Universal Robot Driver through Virtual Box? #623

Open
KarimHP opened this issue Mar 24, 2023 · 2 comments
Open

Run Universal Robot Driver through Virtual Box? #623

KarimHP opened this issue Mar 24, 2023 · 2 comments

Comments

@KarimHP
Copy link

KarimHP commented Mar 24, 2023

Summary

Introduction to the issue

Versions

  • ROS Driver version: melodic
  • OS: Windows 11, running Ubuntu 18 through a virtual box

I want to install ubuntu 18 on a virtual box on my windows 11 System. Is it possible to run the UR5 ROS driver through my virtual box? The problem im seeing is that i have to change the static IP Adress and the netmask of my Ubuntu VM to match the UR5 IP. Will that work through the Virtual box or do i have to also change the static ip Adress of my Windows 11 Host System?

@github-actions
Copy link

This issue has not been updated for a long time. If no further updates are added, this will be closed automatically. Comment on the issue to prevent automatic closing.

@fmauch
Copy link
Collaborator

fmauch commented Jun 23, 2023

Sorry for the delayed answer.

I see a couple of implications here:

  • I would suggest not using ubuntu 18.04 with ROS melodic, since this is end of life. Please consider using ubuntu 20.04 with ROS noetic. (Or even consider switching to ROS 2)
  • Running the driver in a virtual machine will most probably cause performance problems, since the driver has pretty strict requirements regarding cycle times. Expect the driver to be occasionally disconnecting. Also see Real time benchmarking / reasoning #615 for a more detailed explanation (which is only considering different Linux setups.)
  • Regarding networking: You could
    • Have your host in the same subnet as your UR, use a NAT interface for your VM and have ports 50001 to 50004 forwarded to your VM
    • You could use a bridge network device for your VM. Then, this device gets its own IP address that you can use as a remote address on your UR
  • I have absolutely no knowledge about performance implications of the different network implementations mentioned above. I absolutely would not recommend running the driver in a VM, as also mentioned above. You could consider using WSL2 instead.

This is about all I can say about running the driver in a VM on windows (Though I would like to actually test it myself and make the same analyses I've done in #615 at some point...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants