ps4 eye camera 是一款性价比很高的双目摄像头,之前已经有人设计完成了一代产品的ROS驱动程序,代码见GitHub[1],今天要测试的是去年发布的新款摄像头.
ps4 camera 接口是USB3.0 的一个衍生版本,需要进行一定的硬件的改装,将原来的AUX公头换成USB3.0公头,第一代产品的具体改装参考[2] [3]. 转接口[4]: 将[1]代码下载到ROS的工作空间下面,编译,然后运行设置指令,安装gscam
sudo apt install ros-indigo-gscam运行指令roslaunch ps4_eye stereo.launch 可能出现的错误:
[FATAL] [1502076895.950292493]: Failed to PAUSE stream, check your gstreamer configuration. [FATAL] [1502076895.950334787]: Failed to initialize gscam stream!原因: camera的端口不对 测试结果: 不显示图像, 但是可以识别到设备
用cheese, camorama 均无法打开设备, 确定不是硬件问题
系统的版本信息: Linux version 3.13.0-117-generic (buildd@lgw01-18) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #164-Ubuntu SMP Fri Apr 7 11:05:26 UTC 2017
内核更新方法:http://www.linuxidc.com/Linux/2014-05/101240.htm 将ubuntu的内核更新到3.17.3后cheese可以打开摄像头 camorama 打开有错误 运行ros程序测试:
测试ok!!
[1] https://github.com/longjie/ps4eye [2] https://haochihros.wordpress.com/2016/08/03/ps4eye-x-ros-hardware-modification/ [3] http://www.psdevwiki.com/ps4/Aux [4] https://oshpark.com/shared_projects/0PjWmdWL [5] https://github.com/bigboss-ps3dev/PS4EYECam/