- create a new virtual machine and choose customized.
- choose the version depend on your own choice.
- choose your path of image and install system later.
- choose Linux and Ubuntu 64.
- name your machine and place it as you want.
- assign processor for your virtual machine.
- assign memory for your virtual machine.
- add NAT for your network.
- choose LSI Logic
- default value is fine.
- default value is fine.
- assign 30-40 GB for your virtual machine.
- default value is fine.
- see your configuration and complete it.
- start your machine we configured and wait for a while. Then we will see this interface and choose install ubuntu.
- choose language (English is preferred.)
- the author prefers to Minimal installation.
- Install now!
- shanghai!
- set your user name and password and wait for a while.
- update source
sudo apt update
sudo apt upgrade
- install ROS
# add ROS source
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
# or Tsinghua source
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ focal main" > /etc/apt/sources.list.d/ros-latest.list'
# add ROS key
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# install ros
sudo apt update
sudo apt install ros-noetic-desktop-full
# add path to bashrc
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
# test ros
roscore
# started core service
- install Universal_Robot package
sudo apt install ros-noetic-ur-msgs
sudo apt install ros-noetic-ur-gazebo
sudo apt install ros-noetic-ur-description
sudo apt install ros-noetic-ur-client-library
Problems may occur when you install all these things. Feel free to ask TAs for help if you can not solve them.