ROS桌面版melodic安装

Ubuntu18.04安装ROS

参考wiki.ros.org/Installation/Ubuntu

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654 #解决apt update报错问题
sudo apt install net-tools #解决没有ifconfig命令的问题.
sudo apt install openssh-server #安装openssh-server, 用本机电脑连接工控机
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
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 -
sudo apt update
sudo apt install ros-melodic-desktop-full #sudo apt install ros-noetic-desktop-full无法安装
apt search ros-melodic #搜索可用的包
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc #配置环境
source ~/.bashrc #激活环境
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential #安装依赖
sudo apt install python-rosdep #安装rosdep, 使你能够简单的为你想编译的源码安装系统依赖, 并且也是一些核心组件所需要的
sudo rosdep init
rosdep update #要多执行几次才能成功, 或者用手机热点
roslaunch turtles_tf turtle_tf_demo.launch #运行乌龟例程,屏幕出现两个小乌龟,一个会追上另一个

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部