ROS中调用深度摄像头

ROS版本:kinect
PX4固件版本:v1.11.0-beta2

记录一下试错的过程

topic:
/iris_0/stereo/camera/left/camera_info
/iris_0/stereo/camera/left/image_raw
/iris_0/stereo/camera/left/parameter_descriptions
/iris_0/stereo/camera/left/parameter_updates
/iris_0/stereo/camera/right/camera_info
/iris_0/stereo/camera/right/image_raw
/iris_0/stereo/camera/right/parameter_descriptions
/iris_0/stereo/camera/right/parameter_updates

打开终端后键入 rosrun image_view stereo_view stereo:=/iris_0/stereo/camera image:=age_raw

没有图像并出现warning,给出了几个可能的问题,其中就有另一个节点未打开的问题。

> Possible issues: 	* stereo_image_proc is not running. 	  Does `rosnode
> info /stereo_view_1589876794090717647` show any connections? 	* The
> cameras are not synchronized. 	  Try restarting stereo_view with
> parameter _approximate_sync:=True 	* The network is too slow. One or
> more images are dropped from each triplet. 	  Try restarting
> stereo_view, increasing parameter 'queue_size' (currently 5)

解决方案:

先执行

ROS_NAMESPACE=iris_0/stereo/camera rosrun stereo_image_proc stereo_image_proc

再执行

rosrun image_view stereo_view stereo:=/iris_0/stereo/camera image:=age_raw

参考资料
http://wiki.ros.org/image_proc
http://wiki.ros.org/stereo_image_proc

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值