ubuntu14.04 安裝ros 開發環境
阿新 • • 發佈:2019-02-12
#!/bin/bash
# 一:ubuntu14.04.1安裝ROS 開發環境
if false; then
echo "第一步:配置source.list檔案"
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
echo "第二步:新增 keys"
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
echo "第三步:更新軟體源"
sudo apt-get update
echo "第四步:安裝"
#完整安裝ROS桌面,包含所有SLAM庫
echo "apt-get install -y ros-indigo-desktop-full"
sudo apt-get install ros-indigo-desktop-full
#安裝部分SLAM庫
#echo "apt-get install ros-indigo-desktop"
#sudo apt-get install ros-indigo-desktop
#安裝ROS-base,只有編譯和通訊庫,沒有GUI
#echo "apt-get install ros-indigo-ros-comm"
#sudo apt-get install ros-indigo-ros-comm
#安裝ROS特定功能包,例如sudo apt-get install ros-indigo-slam-gmapping
#echo "apt-get install ros-indigo-STACK"
#sudo apt-get install ros-indigo-STACK
echo "第五步:初始化rosdep"
sudo rosdep init
rosdep update
echo "第六步:初始化配置ROS"
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
echo "第七步:安裝ROS幫助工具python-rosinstall "
sudo apt-get install -y python-rosinstall
exit
fi
# 一:ubuntu14.04.1安裝ROS 開發環境
if false; then
echo "第一步:配置source.list檔案"
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
echo "第二步:新增 keys"
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
echo "第三步:更新軟體源"
sudo apt-get update
echo "第四步:安裝"
#完整安裝ROS桌面,包含所有SLAM庫
echo "apt-get install -y ros-indigo-desktop-full"
sudo apt-get install ros-indigo-desktop-full
#安裝部分SLAM庫
#echo "apt-get install ros-indigo-desktop"
#sudo apt-get install ros-indigo-desktop
#安裝ROS-base,只有編譯和通訊庫,沒有GUI
#echo "apt-get install ros-indigo-ros-comm"
#sudo apt-get install ros-indigo-ros-comm
#安裝ROS特定功能包,例如sudo apt-get install ros-indigo-slam-gmapping
#echo "apt-get install ros-indigo-STACK"
#sudo apt-get install ros-indigo-STACK
echo "第五步:初始化rosdep"
sudo rosdep init
rosdep update
echo "第六步:初始化配置ROS"
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
echo "第七步:安裝ROS幫助工具python-rosinstall "
sudo apt-get install -y python-rosinstall
exit
fi