Installing ROS into the Virtual Machine
The ROS install is really quite well documented on the official ROS webpage http://wiki.ros.org/ROS/Installation, so do make that your primary reference! There are some additional pointers that can help guide new users, so here we go.
Begin by logging in to your new Ubuntu Linux system:
Start the Firefox browser and head on over to the ROS Install page (again,
Select “ROS Kinetic Kame”.
Follow the steps detailed in the above page carefully.
Begin by opening up a “Terminal” session. You can do this by clicking the top-left icon in your Ubuntu virtual machine, to “Search your computer”. Enter “terminal” as the search term and then click on the terminal icon that appears below the search bar.
At the command prompt, begin entering the commands provided on the ROS Installation page. One can often skip over step 1.1 and go straight to ‘1.2 Setup your sources.list’. Just begin copying and pasting the commands from the gray boxes on the page into the terminal window.
[Hint: you can copy the command with Ctrl-C, and paste it into the terminal with Shift-Ctrl-V]
Keep copying and pasting commands and work you way through the installation.
In step 1.3, I had to substitute the keyserver (the default did not work), so my command looked like:
sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
In step 1.4, be very patient! It can look like nothing is happening at times. Also, be sure and select the full desktop install:
sudo apt-get install ros-kinetic-desktop-full
Again, be patient grasshopper.
When the installation finishes, you should see an output similar to the above. You can do a quick sanity check by starting that most elemental of programs:
Enter the above command in the terminal.
If you see output similar to the above, congratulations! You have started a ROS master (roscore). Terminate this ROS master (Ctrl-C), as we’ll be running the master on the robot going forward.