Driver

Realsense

Realsense数据丢失问题

  • ubuntu18.04/20.04等版本容易出现数据丢失或读取不到元数据的问题,Sometimes "rs2_pipeline_wait_for_frames - pipe:0x2326020 :Frame didn't arrive within 5000" occurred after running normally several hours. then can't get any device by calling ctx.query_devices()even though I reboot the computer。或者:

img

或者:(ds5-timestamp.cpp:69) UVC metadata payloads not available. Please refer to the installation chapter for details.

  • 官方说明

img

源码安装Realsense

当内核版本非官方直接支持的版本时或者相机输出不太稳定时则建议使用源码编译。或者使用RSUSB backend(但实测在5.13,没有希望的效果)

  • 为什么强烈建议使用patch:

img
  • 现支持的版本:

img

依然会有

  • 大概安装的过程:

git clone https://github.com/IntelRealSense/librealsense.git --depth=1
构建特定内核下的内核模块
cd librealsense ./scripts/patch-realsense-ubuntu-lts.sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release  ..
make -j4
sudo make install
添加udev
./scripts/setup_udev_rules.sh
test:
realsense-viewer

自定义补丁

需要修正相关的文件,尝试修正5.13版本的驱动模块(以为可以无损patch),但相关的API有一些差异,感觉改起来比较耗时,坐等官方提供支持了(告辞.jpg)

image-20220324104535573

ROS realsense

没有IMU数据输出

没有/camera/imu数据进行发布,在使能陀螺仪和重力加速度计后默认是分别发布这两个主题;将它们合成为一个topic的话则需要设置:

<!-- 或者copy -->
unite_imu_method:="linear_interpolation"