ubuntu18.04安装官网realsense-ros的详细步骤
时间: 2023-10-11 15:06:00 浏览: 119
以下是在Ubuntu 18.04上安装官网realsense-ros的详细步骤:
1. 打开终端,添加ROS repository的公钥:
```bash
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
```
2. 添加ROS repository到系统的source list:
```bash
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
```
3. 更新包索引:
```bash
sudo apt update
```
4. 安装ROS Melodic:
```bash
sudo apt install ros-melodic-desktop-full
```
5. 初始化ROS:
```bash
sudo rosdep init
rosdep update
```
6. 配置环境变量:
```bash
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
```
7. 安装realsense-ros:
```bash
sudo apt-get install ros-melodic-realsense2-camera
```
8. 测试realsense-ros:
```bash
roslaunch realsense2_camera rs_camera.launch
```
以上步骤完成后,就可以使用realsense-ros来驱动Intel RealSense系列深度相机了。
阅读全文