ubuntu18.0装ros(melodic)

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654

sudo apt-get update
sudo apt-get install ros-melodic-desktop-full
sudo apt-get install ros-melodic-rqt*

# 如果出现“rosdep:找不到命令”,就执行下面这句
sudo apt-get install python-rosdep

sudo rosdep init
rosdep update

echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc

roscore #验证是否安装成功
#如果出现IOError:[error 13]permission denied:/home/xx/.ros/roscore-11311.pid
sudo chmod 777 -R ~/.ros/

你可能感兴趣的:(开发环境配置,自动驾驶,机器学习)