其他分享
首页 > 其他分享> > RealSence D435i相机使用

RealSence D435i相机使用

作者:互联网

RealSense D435i驱动安装

官网链接:https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md

Ubuntu16.04安装

sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg
realsense-viewer

打开RGB、双目和IMU,可以看到如下结果
在这里插入图片描述

Ubuntu18.04安装

不同之处

sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE`
sudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo bionic main" -u

编译RealSense

Intel公司提供的RealSense的ROS安装包;
官方教程:https://github.com/intel-ros/realsense.git
安按照ros工程进行编译

cd ~/catkin_ws/src
git clone https://github.com/intel-ros/realsense.git
cd ..
catkin_make
rospack profile
source devel/setup.bash
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "ddynamic_reconfigure" with any of the following names: ddynamic_reconfigureConfig.cmake ddynamic_reconfigure-config.cmake

测试RealSense

  1. 打开刚刚编译的文件夹
source devel/setup.bash
//打开两个终端:
roslaunch realsense2_camera rs_camera.launch
rostopic list

然后运行(不加filters:=pointcloud好像没有点云的节点)

roslaunch realsense2_camera rs_camera.launch filters:=pointcloud

参考链接
https://blog.csdn.net/weixin_48135525/article/details/117471071
https://blog.csdn.net/weixin_44580210/article/details/89789416
https://blog.csdn.net/qq_41839222/article/details/86552367

标签:D435i,https,--,sudo,apt,相机,key,com,RealSence
来源: https://blog.csdn.net/gyqJulius_Caesar/article/details/121086344