NVIDIA Jetson TX2 解决奥比中光 Astra pro相机的ros 打不开深度信息/camera/depth/image
背景:
NVIDIA Jetson TX2 安装奥比中光 Astra pro相机的ROS 驱动后可以打开彩色相机,
打不开深度信息,有点捉急,换了一台相机,还是如此,说明相机没问题驱动有问题。
打开奥比中光的开发者论坛:
Astra pro无法读取到深度信息,如何设置成uvc模式?
留意到:
Astra Pro相机的深度图是 openni 协议, 彩色图是 uvc 协议,一下子有解决问题的思路啦。
一 . 先下载驱动
https://developer.orbbec.com.cn/download.html?id=64
下载下来是:
OpenNI_v2.3.0.85_20220615_1b09bbfd_linux_x64_release.zip 是 x64 的,NVIDIA Jetson TX2 不能用
因为NVIDIA Jetson TX2
$ arch
aarch64
$ dpkg --print-architecture
arm64
参考:Ubuntu 20.04 - 查看操作系统架构
参考:奥比中光Orbbec Astra pro 深度相机在ROS Melodic的使用 安装OpenNI-Linux-Arm64-2.3.0.66 驱动
下载地址:
https://dl.orbbec3d.com/dist/openni2/OpenNI_2.3.0.66.zip
$ cd OpenNI_2.3.0.66/Linux
$ ls
OpenNI-Linux-Arm-2.3.0.66 OpenNI-Linux-x64-2.3.0.66
OpenNI-Linux-Arm64-2.3.0.66 OpenNI-Linux-x86-2.3.0.66
有符合NVIDIA Jetson TX2 的 OpenNI-Linux-Arm64-2.3.0.66
- 安装OpenNI
unzip OpenNI_2.3.0.66.zip
cd OpenNI_2.3.0.66/Linux/OpenNI-Linux-Arm64-2.3.0.66
chmod +x install.sh
sudo ./install.sh
- 重新拔插设备
- 初始化OpenNI环境
source OpenNIDevEnvironment
- 编译运行
cd Samples/SimpleViewer
make
make的时候出现问题
Viewer.h:24:10: fatal error: OpenNI.h: No such file or directory#include <OpenNI.h>^~~~~~~~~~
compilation terminated.
sudo find / -name "OpenNI.h"
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Linux/OpenNI-Linux-Arm64-2.3.0.66/include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Linux/OpenNI-Linux-x86-2.3.0.66/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Linux/OpenNI-Linux-Arm-2.3.0.66/include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Linux/OpenNI-Linux-x64-2.3.0.66/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Android/Sample/cpp-demos/irforopenni2/app/src/main/cpp/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Android/Sample/java-demos/irforopenni2/app/src/main/cpp/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Android/SDK/include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Windows/SDK/x86/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Windows/SDK/x64/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Windows/Samples/samples.old/ThirdParty/openni/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Windows/Samples/samples.old/ThirdParty/OpenNI2/Include/OpenNI.h
/home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Windows/Samples/thirdparty/OpenNI2/Include/OpenNI.h
修改目录下的Makefile
INC_DIRS = /home/wxf/newdisk/softwares/OpenNI_2.3.0.66/Linux/OpenNI-Linux-Arm64-2.3.0.66/include\../../Include \../../ThirdParty/GL/ \../Common
重新编译
make -j4
cd /Bin/Arm64-Release
sudo -s
./SimpleViewer
成功说明相机的 ir 模块 没有问题
二. 安装 ros 版本
下载 OpenNI_SDK_ROS_v1.0.9_20220725_0bf97f_Linux.tar.gz
同时参考乐视三合一奥比中光Orbbec Astra Pro在ROS中配置显示RGB、深度、IR图像的两种思路
ubuntu20.04 noetic 安装 Astra Pro 驱动
sudo apt-get install ros-melodic-uvc-camera
然后解压,发现目录下为 ros_astra_camera
参考NVIDIA Jetson TX2 安装 Astra相机的ros驱动源码 错误总结安装运行
roslaunch astra_camera astrapro.launch
rostopic list
$ rostopic list
/camera/camera_connected
/camera/camera_disconnected
/camera/camera_nodelet_manager/bond
/camera/camera_rgb/parameter_descriptions
/camera/camera_rgb/parameter_updates
/camera/depth/camera_info
/camera/depth/image
/camera/depth/image/compressed
/camera/depth/image/compressed/parameter_descriptions
/camera/depth/image/compressed/parameter_updates
/camera/depth/image/compressedDepth
/camera/depth/image/compressedDepth/parameter_descriptions
/camera/depth/image/compressedDepth/parameter_updates
/camera/depth/image/theora
/camera/depth/image/theora/parameter_descriptions
/camera/depth/image/theora/parameter_updates
/camera/depth/image_raw
/camera/depth/image_raw/compressed
/camera/depth/image_raw/compressed/parameter_descriptions
/camera/depth/image_raw/compressed/parameter_updates
/camera/depth/image_raw/compressedDepth
/camera/depth/image_raw/compressedDepth/parameter_descriptions
/camera/depth/image_raw/compressedDepth/parameter_updates
/camera/depth/image_raw/theora
/camera/depth/image_raw/theora/parameter_descriptions
/camera/depth/image_raw/theora/parameter_updates
/camera/depth/image_rect
/camera/depth/image_rect/compressed
/camera/depth/image_rect/compressed/parameter_descriptions
/camera/depth/image_rect/compressed/parameter_updates
/camera/depth/image_rect/compressedDepth
/camera/depth/image_rect/compressedDepth/parameter_descriptions
/camera/depth/image_rect/compressedDepth/parameter_updates
/camera/depth/image_rect/theora
/camera/depth/image_rect/theora/parameter_descriptions
/camera/depth/image_rect/theora/parameter_updates
/camera/depth/image_rect_raw
/camera/depth/image_rect_raw/compressed
/camera/depth/image_rect_raw/compressed/parameter_descriptions
/camera/depth/image_rect_raw/compressed/parameter_updates
/camera/depth/image_rect_raw/compressedDepth
/camera/depth/image_rect_raw/compressedDepth/parameter_descriptions
/camera/depth/image_rect_raw/compressedDepth/parameter_updates
/camera/depth/image_rect_raw/theora
/camera/depth/image_rect_raw/theora/parameter_descriptions
/camera/depth/image_rect_raw/theora/parameter_updates
/camera/depth/points
/camera/depth_rectify_depth/parameter_descriptions
/camera/depth_rectify_depth/parameter_updates
/camera/depth_registered/camera_info
/camera/depth_registered/hw_registered/image_rect
/camera/depth_registered/hw_registered/image_rect/compressed
/camera/depth_registered/hw_registered/image_rect/compressed/parameter_descriptions
/camera/depth_registered/hw_registered/image_rect/compressed/parameter_updates
/camera/depth_registered/hw_registered/image_rect/compressedDepth
/camera/depth_registered/hw_registered/image_rect/compressedDepth/parameter_descriptions
/camera/depth_registered/hw_registered/image_rect/compressedDepth/parameter_updates
/camera/depth_registered/hw_registered/image_rect/theora
/camera/depth_registered/hw_registered/image_rect/theora/parameter_descriptions
/camera/depth_registered/hw_registered/image_rect/theora/parameter_updates
/camera/depth_registered/hw_registered/image_rect_raw
/camera/depth_registered/hw_registered/image_rect_raw/compressed
/camera/depth_registered/hw_registered/image_rect_raw/compressed/parameter_descriptions
/camera/depth_registered/hw_registered/image_rect_raw/compressed/parameter_updates
/camera/depth_registered/hw_registered/image_rect_raw/compressedDepth
/camera/depth_registered/hw_registered/image_rect_raw/compressedDepth/parameter_descriptions
/camera/depth_registered/hw_registered/image_rect_raw/compressedDepth/parameter_updates
/camera/depth_registered/hw_registered/image_rect_raw/theora
/camera/depth_registered/hw_registered/image_rect_raw/theora/parameter_descriptions
/camera/depth_registered/hw_registered/image_rect_raw/theora/parameter_updates
/camera/depth_registered/image
/camera/depth_registered/image/compressed
/camera/depth_registered/image/compressed/parameter_descriptions
/camera/depth_registered/image/compressed/parameter_updates
/camera/depth_registered/image/compressedDepth
/camera/depth_registered/image/compressedDepth/parameter_descriptions
/camera/depth_registered/image/compressedDepth/parameter_updates
/camera/depth_registered/image/theora
/camera/depth_registered/image/theora/parameter_descriptions
/camera/depth_registered/image/theora/parameter_updates
/camera/depth_registered/image_raw
/camera/depth_registered/image_raw/compressed
/camera/depth_registered/image_raw/compressed/parameter_descriptions
/camera/depth_registered/image_raw/compressed/parameter_updates
/camera/depth_registered/image_raw/compressedDepth
/camera/depth_registered/image_raw/compressedDepth/parameter_descriptions
/camera/depth_registered/image_raw/compressedDepth/parameter_updates
/camera/depth_registered/image_raw/theora
/camera/depth_registered/image_raw/theora/parameter_descriptions
/camera/depth_registered/image_raw/theora/parameter_updates
/camera/depth_registered/points
/camera/depth_registered_rectify_depth/parameter_descriptions
/camera/depth_registered_rectify_depth/parameter_updates
/camera/driver/parameter_descriptions
/camera/driver/parameter_updates
/camera/ir/camera_info
/camera/ir/image
/camera/ir/image/compressed
/camera/ir/image/compressed/parameter_descriptions
/camera/ir/image/compressed/parameter_updates
/camera/ir/image/compressedDepth
/camera/ir/image/compressedDepth/parameter_descriptions
/camera/ir/image/compressedDepth/parameter_updates
/camera/ir/image/theora
/camera/ir/image/theora/parameter_descriptions
/camera/ir/image/theora/parameter_updates
/camera/projector/camera_info
/camera/rgb/camera_info
/camera/rgb/image_raw
/camera/rgb/image_raw/compressed
/camera/rgb/image_raw/compressed/parameter_descriptions
/camera/rgb/image_raw/compressed/parameter_updates
/camera/rgb/image_raw/compressedDepth
/camera/rgb/image_raw/compressedDepth/parameter_descriptions
/camera/rgb/image_raw/compressedDepth/parameter_updates
/camera/rgb/image_raw/theora
/camera/rgb/image_raw/theora/parameter_descriptions
/camera/rgb/image_raw/theora/parameter_updates
/camera/rgb/image_rect_color
/camera/rgb/image_rect_color/compressed
/camera/rgb/image_rect_color/compressed/parameter_descriptions
/camera/rgb/image_rect_color/compressed/parameter_updates
/camera/rgb/image_rect_color/compressedDepth
/camera/rgb/image_rect_color/compressedDepth/parameter_descriptions
/camera/rgb/image_rect_color/compressedDepth/parameter_updates
/camera/rgb/image_rect_color/theora
/camera/rgb/image_rect_color/theora/parameter_descriptions
/camera/rgb/image_rect_color/theora/parameter_updates
/camera/rgb_rectify_color/parameter_descriptions
/camera/rgb_rectify_color/parameter_updates
/rosout
/rosout_agg
/tf_static
如果还有问题,更新软件包:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
NVIDIA Jetson TX2 解决奥比中光 Astra pro相机的ros 打不开深度信息/camera/depth/image相关推荐
- 乐视体感三合一奥比中光Astra Pro相机彩色和深度(红外)相机标定
具体标定过程参考 乐视体感三合一奥比中光Astra Pro相机彩色和深度(红外)相机标定 由于在标定过程中IR图像过暗无法进行标定,故对其数据进行放大处理,相关代码如下: #!/usr/bin/env ...
- 奥比中光Astra Pro Demo示例
Orbbec Astra Pro 设备调试 Demo 使用奥比中光Astra Pro捕获深度图与彩色图代码 使用奥比中光Astra Pro捕获深度图与彩色图代码 #include <astra/ ...
- ROS探索-乐视(奥比中光)Astra Pro深度相机
ROS探索-奥比中光Astra Pro 一.驱动 二.问题 一.驱动 支持 ROS Kinetic and Melodic. 安装 ROS. 安装依赖 sudo apt install ros-$RO ...
- 奥比中光astra pro深度相机采集彩色图像跑单目orb_slam3
奥比中光astra pro用尽各种办法,采集不到彩色图,有能同时采集彩图和深度图的告诉兄弟一下,下面是我的装机过程: 在ros2 foxy版安装奥比中光Astra Pro RGBD深度像机_JT_BO ...
- python通过openni获取奥比中光Astra Pro的深度值和RGB图像
python通过openni获取奥比中光Astra Pro的深度值和RGB图像 前不久入了个乐视的体感摄像头来玩玩,在网上看了一些资料都是cpp的,出于个人习惯就改写成了python程序,可以同时获取 ...
- 奥比中光Astra Pro VS2019 openni2.3 配置
Astra Pro官方参数:http://www.orbbec.com.cn/sys/37.html 资料下载: http://www.orbbec.com.cn/sys/list/11.html 1 ...
- 在ros2 foxy版安装奥比中光Astra Pro RGBD深度像机
环境: ubuntu 20.04 ros2 foxy 安装使用参考奥比中光官网文档: https://developer.orbbec.com.cn/technical_library.html?id ...
- 奥比中光 Astra pro 深度相机在ROS Melodic的调试
一.安装OpenNI 从官网上下载相应系统和版本的SDK,我这里是Linux-ARM64版本的,下载的是OpenNI-Linux-Arm64-2.3.0.66. 二.配置 在解压后的目录中,执行 in ...
- 奥比中光深度摄像头_奥比中光astra摄像头总结
1. 奥比中光摄像头(astra pro)在kinetic和melodic下同时显示深度图像和彩色图像(rgb)的方法前言:乐视摄像头采用的是奥比中光astra pro,套了个外壳就原价899,但出事 ...
最新文章
- python连接sqlite加密_C#连接加密的Sqlite数据库的方法
- Bluetooth4.0
- bnuoj 1068 比赛安排
- .net core 生成二维码
- linux执行脚本n,Linux执行sh脚本空白
- 鸿蒙如何连接电视,鸿蒙系统首秀,在自家设备上和普通电视大不相同
- mysql挂科了咋办_大学第一学期挂科怎么办?
- MASM8.0 下载安装方法
- 信贷风控四:高校地址自动化识别
- 长微博生成器 php,【九零天下】长微博生成器的PHP代码部分
- 彩色二维码如何制作?
- 简单的Wifi网络概念
- 交易订单处理失败,请稍后再试(ali64)
- Lidar_imu自动标定源码阅读(二)——calibration部分
- 计算机重启恢复系统怎么操作,电脑只要关机重启系统就会自动还原?-电脑怎么系统还原...
- [Pytorch系列-28]:神经网络基础 - torch.nn模块功能列表
- Android 10 设置壁纸流程
- 新华都总裁兼CEO给唐骏留言
- Linux Command
- 原来论文摘要并不是摘录原文,而是原文的总结和提炼
热门文章
- python之python3.x版本用urllib爬虫出现的module 'urllib' has no attribute 'urlopen'与urllib.error.HTTPError: HTT
- There is no getter for property named ‘xxx‘ in ‘class com.xxx‘
- Docker基础: Linux内核命名空间之(1) mnt namespace
- 浅谈使用Word和Baklib制作帮助文档区别
- 阅读赵炯的《Linux内核完全注释》之前必须知道的!
- C语言 数组元素的遍历
- 靠营销出圈的拉面说,会是下一个黄太吉吗?
- 限制输入框 输入文本类型(纯数字/数字/中文/英文)
- Hack微信,不一样的安全视角
- 无线路由器不启用dhcp服务器,360路由器怎么关闭DHCP服务器? | 192路由网