前提是先安装好realsense的驱动,也就是终端输入:realsense-viewer
可以打开相机的图像。
之后输入apt search melodic-realsense2
然后将找到的3个库都安装了就好了
sudo aptitude install ros-melodic-realsense2-camera
sudo aptitude install ros-melodic-realsense2-description
sudo aptitude install ros-melodic-realsense2-camera-dbgsym
终端打开相机并查看图像:
roslaunch realsense2_camera rs_camera.launch
rosrun rqt_image_view rqt_image_view