Giter VIP home page Giter VIP logo

ps4eye's Introduction

PlayStation4 stereo camera package for ROS

Screenshot

WARNING

  • 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.

Requirements

  • You need a ps4eye camera PlayStation Camera CUH-ZEY1J

  • You need to hack the cable. See PS4eye.

  • You may need newer linux kernel. Kernel version 3.17.3 is OK. 3.16.0 is NG.

    If you are using ubuntu, please check this page to update kernel

  • You'll need Pyusb 1.0 or the script executed in the udev rules will silently fail. sudo pip install --pre pyusb

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
  1. Plug your ps4eye to USB 3.0 port.

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

  3. 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
  1. If you want to run the viewer individually, use this command.
$ rosrun image_view stereo_view stereo:=/stereo image:=image_rect_color
  1. Now you can see disparity image from the stereo camera. Done!

About ps4eye folder's contents

ps4eye folder contains files:

  • script/firmware.bin
  • script/ps4eye_init.py

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.

ps4eye's People

Contributors

hyaguchijsk avatar k-okada avatar longjie avatar robograffitti avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.