Ubuntu 18.04安装ROS详细步骤
时间: 2023-03-07 19:14:17 浏览: 150
要在Ubuntu 18.04上安装ROS,请按照以下步骤操作:1. 安装ROS的支持软件:$ sudo apt update
$ sudo apt install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential2. 初始化rosdep:$ sudo rosdep init
$ rosdep update3. 创建你的工作区:$ mkdir -p ~/ros_catkin_ws
$ cd ~/ros_catkin_ws4. 使用rosinstall来下载ROS:$ rosinstall_generator ros_comm --rosdistro melodic --deps --tar > melodic-ros_comm.rosinstall5. 下载ROS:$ wstool init -j8 src melodic-ros_comm.rosinstall6. 安装依赖:$ rosdep install --from-paths src --ignore-src --rosdistro melodic -y7. 编译工作区:$ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release8. 添加环境变量:$ echo "source ~/ros_catkin_ws/install_isolated/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)