PS4 stereo camera driver using the V4L2 API. Unlike the ps4eye package which is using gstreamer/gscam, it is using the V4L2 API directly and has lower CPU consumption.
Code in this package is based partly on two other projects:
- The V4L2/Minoru packages by Bob Mottram and Giacomo Spigler (See libv4l2cam and MinoruWebcam)
- The ps4eye ROS package.
- This package is experimental and not completed.
- You need to hack (cut and solder) the PS4 camera's cable. It may damage your device. Do it at your own risk.
- The PS4 camera is USB 3.0 only and is not compatible with USB 2.0 systems.
-
You need a ps4eye camera PlayStation Camera CUH-ZEY1J
-
You need to hack the cable. See PS4eye.
-
You may need newer linux kernel. Starting from Kernel version 3.17.3 things seem to work.
If you are using ubuntu, you might want to check this page for updating your kernel.
-
You'll need Pyusb 1.0 or the script executed in the udev rules will silently fail.
sudo apt-get install python-pip
sudo pip install --pre pyusb
- Run create_udev_rules. Enter sudo password to place /etc/udev/rules.d/91-ps4eye.rules. You need this step only once.
$ rosrun ps4_stereo_camera create_udev_rules
-
Plug your ps4eye into a free USB 3.0 port.
-
Check if you can obtain the image from ps4 camera by webcam software (cheese, camorama, etc).
-
Run stereo.launch.
$ roslaunch ps4_stereo_camera ps4_stereo_camera_default.launch