当前位置:   article > 正文

【项目】ROS下使用乐视深度相机LeTMC-520_letmc520

letmc520

本文主要记录如何在ros下使用乐视深度相机。乐视三合一体感摄像头LeTMC-520其实就是奥比中光摄像头(Orbbec Astra Pro

系统:Ubuntu20.04

这款相机使用uvc输入彩色信息,需要使用libuvc、libuvc_ros才能在ROS上正常使用彩色功能。

1.安装libuvc

   Could not find a package configuration file provided by "libuvc" with any
  of the following names:

    libuvcConfig.cmake
    libuvc-config.cmake

  Add the installation prefix of "libuvc" to CMAKE_PREFIX_PATH or set
  "libuvc_DIR" to a directory containing one of the above files.  If "libuvc"
  provides a separate development package or SDK, be sure it has been
  installed.

  1. git clone https://github.com/libuvc/libuvc
  2. cd libuvc
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make && sudo make install

2.安装依赖 

  1. sudo apt install ros-noetic-libuvc-camera
  2. sudo apt install ros-noetic-libuvc-ros
  3. sudo apt install ros-noetic-rgbd-launch
  4. sudo apt install ros-noetic-usb-cam

3.编译并运行

下载功能包:链接: https://pan.baidu.com/s/1l56ksqCV9HFbfFc-Kj4vPQ 提取码: 6sf1 

①创建功能空间,并编译:

  1. mkdir -p astra_ws/src
  2. # 将功能包放入src
  3. cd astra_ws
  4. catkin_make

②安装udev rules:(目的:是将串口号重命名)

  1. cd astra_ws/src/ros_astra_camera/scripts/
  2. sudo chmod 777 create_udev_rules
  3. sudo ./create_udev_rules

③运行:

roslaunch astra_camera astrapro.launch

打开rviz查看 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/280220
推荐阅读
相关标签
  

闽ICP备14008679号