Bước 1: setup sources.list
$sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
Bước 2: setup key
$sudo apt install curl # if you haven’t already installed curl
$curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add –
Bước 3: Cài đặt chính
$sudo apt update
$sudo apt install ros-melodic-desktop-full
xem các gói cài đặt:
$apt search ros-melodic
Bước 4: setup môi trường
1 2 3 4 |
$echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc $source ~/.bashrc Bước 5 : Cài tool building package $sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential |
khởi tạo:
1 |
$sudo apt install python-rosdep |
1 |
$sudo rosdep init |
1 |
$rosdep update |