longjie / ps4eye

Apache License 2.0
76 stars 38 forks source link

PlayStation4 stereo camera package for ROS

Screenshot

WARNING

Requirements

Usage

  1. Run create_udev_rules. Enter sudo password to place /etc/udev/rules.d/91-ps4eye.rules. You need this step only once.

    $ rosrun ps4eye create_udev_rules
  2. Plug your ps4eye to USB 3.0 port.

  3. Check if you can obtain the image from ps4 camera by webcam software (cheese, camorama, etc).

  4. Run stereo.launch. DEVICE option is used specify video device. You can bring up stereo viewer if viewer option is true.

    $ roslaunch ps4eye stereo.launch DEVICE:=/dev/video0 viewer:=true
  5. If you want to run the viewer individually, use this command.

    $ rosrun image_view stereo_view stereo:=/stereo image:=image_rect_color
  6. Now you can see disparity image from the stereo camera. Done!

About ps4eye folder's contents

ps4eye folder contains files:

Both files are originally from ps4eye project: [https://github.com/ps4eye](). Source code and binary are downloadable from there. This package include the two files only for convinience.

ps4eye_init.py is from hyaguchijsk's branch: [https://github.com/hyaguchijsk/ps4eye/tree/use_full_path_to_load_firmware]() to make it easy to call from ROS system.

Thanks

Thanks for the incredible ps4 camera hackers.