代码拉取完成,页面将自动刷新
#!/bin/bash
echo ready to Install ROS
release_num=$(lsb_release -r --short)
code_name=$(lsb_release -c --short)
hw_arch=$(uname -m)
echo "release_num= $release_num"
echo "code_name= $code_name"
echo "hardware Architecture = $hw_arch"
if [ $release_num == "18.04" ];then
echo ready to Install ROS melodic For ubuntu 18.04
echo set_source
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
echo Install key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
echo Install lie
sudo apt-get update
sudo apt-get install ros-melodic-desktop-full
sudo apt-get install ros-melodic-rqt*
echo rosdep init
sudo rosdep init
rosdep update
else
echo not suported,beg yourself
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。