![](/uploads/1/2/5/5/125522667/315253108.jpg)
Dec 05, 2018 We will also take you though complete procedure that how you will install VirtualBox in Windows 10. Further, using VirtualBox we are going to install macOS 10.14 Mojave. Therefore, it is quite fun to test and operate macOS Mojave on Windows on your Machine. Install VirtualBox on Windows 10. I tried to install VirtualBox on macOS High Sierra, but I got an error about kernel drivers, system extensions, and kernel modules not being.
Gazebo is a dynamic (3D) simulator that was developed to work with ROS. There are several quadcopter models that work in Gazebo and are controllable via ROS messaging.
See the hector_quadrotor instructions elsewhere on the wiki after installing Ubuntu bash + ROS + Gazebo, for an easy-to-get-started UAV model that works well in Gazebo.
If you've got Mac OSX, some pre-Win10 version of Windows, or otherwise want to make ROS work on Windows 10...
- Install Ubuntu 16.04 as a Virtual Machine under VirtualBox. (Instructions: link. Recommended CPU cores = 2-4, recommended memory = 4GB-8GB, recommended disk size = 20GB-40GB.)
- Start up the Ubuntu 16.04 VM under VirtualBox
If you've got a flavor of Linux on your computer already, or you're an adventurous Win/Mac user...
- Set up Ubuntu to run dual-boot on your computer. (See: link or link from Windows, link from Mac OSX, link from another flavor of Linux.)
![Ros Installation In Virtualbox For Mac Ros Installation In Virtualbox For Mac](/uploads/1/2/5/5/125522667/956318675.png)
- Install ROS kinetic and gazebo. Instructions are here
- (Note: if you install
ros-kinetic-desktop-full
, you get Gazebo along with it.)
- (Note: if you install
- Set up your catkin workspace. Instructions are here
From here, you can start playing with ROS and Gazebo and get different models flying around in the sim.
Note for Windows 10 machines (only if you don't care about ROS working!)...
Probably the easiest way to get Ubuntu 16.04 on your system is to:
- Update Windows to the Fall Creators Update (for the most-recent Ubuntu app)
- Otherwise, update Windows to the Creators Update (for Bash on Ubuntu on Windows)
- Install the Ubuntu app if you have the Fall Creators Update (Oct-Nov 2017)
- Install Bash on Ubuntu on Windows if you have the Creators Update (early-2017)
Make sure you restart your computer before proceeding if you had to enable the 'Windows Subsystem for Linux' as part of the above process!
Then:
- Run XMing
- Run the Ubuntu app (/ Bash on Ubuntu on Windows)
- Run at the Ubuntu app (/ Bash on Ubuntu on Windows) commandline:
Note that if you're using the vagrant-rss scripts to install ROS, then aptdcon and dbus need to be installed for the ROS stuff to install / work at all due to the methods being used in the scripts for installation. Install these via the following:
For Ubuntu 16.04 app:
(Ref.s: link, link, and you may need to create the machine-id manually via link, but -don't- do link because we want it using Unix sockets not Windows protocols)
For Ubuntu 18.04 app:
(Ref.s: link, which discusses installing dbus and creating a machine-id)
![Ros Installation In Virtualbox For Mac Ros Installation In Virtualbox For Mac](/uploads/1/2/5/5/125522667/974421311.png)
And then try installing ROS using the vagrant-rss scripts:
This will have roscore working -- but -very- laggy -- under Windows 10 Fall Creators Update. Try this out in a new
gnome-terminal
window:Note that ROS does NOT currently work under the 'Bash on Ubuntu on Windows' Windows Subsystem for Linux on the Windows 10 Creators Update! To install a working version of ROS for the older Linux subsystem, you will need to install VirtualBox (see above).
- This is due to issues with ros_comm! (See link and link for more information.)
- As of 2017-05-17 and the Windows Creators Update version of the Windows Subsystem for Linux (WSL), you may be able to install and compile under bash on Win10, but if you try running
roscore
and thenrostopic echo /rosout
, you'll get a TCP/IP warning/error after awhile, saying that you can't connect. - If you try running
roslaunch hector_quadrotor_demo indoor_slam_gazebo.launch
, because of theros_comm
TCP/IP stack issues, thecontroller_manager
will 'warn' that it isn't able to load the controllers, and none of the services necessary to control the UAV are loaded --rosservice list
does now show/enable_motors
or any of the/controller_manager/*
services, an example of what you should see is here: link).
Partial fix of ros_comm issue under Windows 10 Creators Update (general pub-sub topics seem to work, hector_quadrotor still not working):
- See: https://github.com/ros/ros_comm/pull/1069
![](/uploads/1/2/5/5/125522667/315253108.jpg)