-
Notifications
You must be signed in to change notification settings - Fork 371
User_Inst_UbuntuOnOracleVM
If you already have Ubuntu (virtual or not) compatible with your ROS distribution, feel free to skip this tutorial. There are many ways to install Ubuntu VM on a Windows PC, here are some:
- Finally with the UI support, WSL is the most powerful, easy to install, and convenient option in this list. We cannot recommend more. Please follow Microsoft's official instructions. Don't forget to install Ubuntu 22 for ROS2 Humble, and Ubuntu 20 for ROS Noetic.
2. Docker
- You can use ROS on a Ubuntu Docker container with additional benefits, but there is a small learning curve. We recommend WSL if you have time constraints. On Windows, Docker also uses the WSL or Hyper-V backend for Linux containers. Each backend has its own advantages and disadvantages, but we recommend the WSL backend. First, follow the official Docker Installation Guide for Windows.
- After installing Docker, please follow this highly practical ROS & Docker video series by @joshnewans.
- In a nutshell, with Docker, you can pull and run a pre-installed ROS (humble) container as follows:
docker image pull ros:humble docker run -it ros:humble
You can also use VS Code's new Dev Container feature. Basically, it allows you to open a ROS Docker container with a single click without leaving your VS Code window. However, if you are new to ROS and/or Linux, I don't recommend it.
For Windows 10 users, Ubuntu VM can also be set up in Hyper-V. Please see 3. header.
-
Follow this tutorial to download Oracle VM VirtualBox and create a new VM.
-
Setting up the Network: In Oracle VirtualBox, make sure the Ubuntu VM is powered off. Then open the settings for the Ubuntu VM. In the Network tab, add two new network adapters:
-
Host-only Adapter
-
Network Bridge
-
In both set the Promiscuous mode to
allow VMs
and set theCable Connected
tag. -
In Ubuntu type
$ ifconfig
to check the network configuration and to verify your Ethernet connection to the Windows OS. -
The IP address (
enp0s8
) of the Ubuntu system will be used byrosbridge_suite
and RosBridgeClient as mentioned later in tutorial 2.1 tutorial. -
These settings are needed so that the RosBridgeClient running in Windows, and the ROSBridge Server running on Ubuntu can communicate.
-
Hyper-V offers native integration with Windows and efficient resource management for multiple OSs, but it's limited to Windows environments. VirtualBox provides cross-platform virtualization with flexibility, but it may have performance overhead compared to Hyper-V and lacks some advanced features for enterprise use cases.
-
Pre-requisites
-
To check if your machine supports Hyper-V, fire up the Command Prompt (
cmd.exe
) and entersysteminfo.exe
-
At the end of the output, you will see an entry named
Hyper-V Requirements
. -
If all you see are
No
, you need to enable hardware virtualization in BIOS. Otherwise, proceed
-
-
Enable Hyper-V
-
Open
Windows Features
(you can search for it in search box), check Hyper-V. -
Click
OK
and wait for reboot.
-
-
Get Ubuntu image
- You can find and download your compatible Ubuntu release from here.
-
Create Virtual Machine by following this (or any) YouTube tutorial.
Next tutorial: ROS on Ubuntu
© Siemens AG, 2017-2024
-
- 1.3.1 R2D2 Setup
- 1.3.2 Gazebo Setup on VM
- 1.3.3 TurtleBot Setup (Optional for ROS2)
-
- 2.1 Quick Start
- 2.2 Transfer a URDF from ROS to Unity
- 2.3 Transfer a URDF from Unity to ROS
- 2.4 Unity Simulation Scene Example
- 2.5 Gazebo Simulation Scene Example
- 2.6 Fibonacci Action Client
- 2.7 Fibonacci Action Server
- 3.1 Import a URDF on Windows
- 3.2 Create, Modify and Export a URDF Model
- 3.3 Animate a Robot Model in Unity
- Message Handling: Readers & Writers
- Thread Safety for Message Reception
- File Server Package
- ROS-Unity Coordinate System Conversions
- Post Build Events
- Preprocessor Directives in ROS#
- Adding New Message Types
- RosBridgeClient Protocols
- RosBridgeClient Serializers
- Action Server State Machine Model
© Siemens AG, 2017-2024