Ubuntu 16.04 ROS環境配置
阿新 • • 發佈:2018-12-12
允許 exe 學習 多說 image too code ini eas
最近新入職一家公司,是搞智能無人駕駛的,用的操作系統是Ubuntu和ros,之前沒接觸過ros系統,既然公司用那就必須的學習啊,話不多說先裝它一個ros玩玩...
1. Ubuntu 安裝 ROS Kinetic
1.1Configure your Ubuntu repositories(配置您的Ubuntu存儲庫)
在系統設置中,找到軟件與更新,將如下幾個都勾選,允許其從互聯網下載。
1.2 Setup your sources.list(設置你的計算機以接受packages.ros.org中的軟件).
$ sudo sh -c ‘echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list‘
1.3 Set up your keys
$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 Executing: /tmp/tmp.NItfnqYQnV/gpg.1.sh --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 gpg: requesting key B01FA116from hkp server ha.pool.sks-keyservers.net gpg: key B01FA116: public key "ROS Builder <[email protected]>" imported gpg: Total number processed: 1 gpg: imported: 1
1.4 Installation
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-desktop-full
1.5 Initialize rosdep(初始化rosdep)
$ sudo rosdep init
$ rosdep update
1.6 Environment setup(配置環境)
$ echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc $ source ~/.bashrc
1.7 Dependencies for building packages(安裝building package的依賴)
$ sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
1.8測試ROS安裝是否成功
Ubuntu 16.04 ROS環境配置