Coder Social home page Coder Social logo

merrylee / moveonpc Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.93 MB

Automatically exported from code.google.com/p/moveonpc

License: BSD 2-Clause "Simplified" License

CMake 2.34% C 53.43% JavaScript 0.03% Python 8.70% Vala 0.07% Shell 0.70% C++ 23.86% C# 5.53% Makefile 0.18% CSS 0.13% HTML 1.25% QMake 0.69% QML 2.75% Objective-C 0.35%

moveonpc's Introduction

PS Move API
===========

A cross-platform C library for using the Sony Playstation Move Motion
Controller, with bindings for Python, Java, Qt and others.

The library is available for Mac OS X, Windows and Linux (USB and Bluetooth).

Basic features:

 * Set the RGB LED color and rumble intensity (USB and Bluetooth)
 * Read digital buttons, analog trigger and sensors (Bluetooth only)

Advanced features:

 * Tracking: Controller tracking with a camera using OpenCV
 * Calibration: Reading of normalized/calibrated values
 * Orientation: Rotation tracking using gyro and accelerometer


Environment variables:

 PSMOVE_TRACKER_CAMERA

     If set, this is the camera that will be used when using
     psmove_tracker_new() instead of using auto-detection

   Example: export PSMOVE_TRACKER_CAMERA=2  # Will use the 3rd camera




 |- Windows notes ----------- -- -  -
 | If you are using MinGW from the Qt SDK, you have to replace the file
 | libbthprops.a in mingw\lib\ with the file of the same name from the
 | mingw-w64 package. A modified set of Bluetooth headers can be found in
 | external/mingw-w64-headers if you need them - they are taken from the
 | mingw-w64 distribution and have been modified to work with Qt SDK's mingw.
 |
 | If for some reason, you get an assertion error (hFind != NULL) on Windows
 | with psmovepair, it could be that you are not using the Windows Bluetooth
 | stack. Whatever the reason is, the psmovepair utility accepts a command-line
 | parameter that is the desired host address, so you can still pair the device
 | by figuring out the Bluetooth host address manually and using this as the
 | first parameter when starting psmovepair, e.g.:
 |
 |       psmovepair.exe AA:BB:CC:DD:EE:FF
 |
 | If you have Python 2.7 and Swig (tested with 2.0.4) installed, the Python
 | module will be built and can be used normally. If you want to try out the
 | samples, use the follwing (assuming you built the project in "build/":
 |
 |       set PYTHONPATH=..\build\
 |       set PATH=%PATH%;C:\python27\
 |       python psmove_test.py
 |
 .

The PS Move protocol information is based on information from the the linmctool
and Move On PC projects.

Bindings to the API using C# / Unity are available in "bindings/unity". They
can be used to create application in the Unity Framework. This project has been
contributed by the Copenhagen Game Collective (thanks to Douglas Wilson et al)
and has its own homepage at:

    http://www.copenhagengamecollective.org/unimove/

Documentation links:

    http://code.google.com/p/moveonpc/wiki/InputReport

Known issues:

    * On Debian Wheezy, you might need to specify the path to "swig"
      thp/psmoveapi#5

Author / contact info: Thomas Perl <[email protected]>
Project homepage: http://thp.io/2010/psmove/
Git repository: https://github.com/thp/psmoveapi
License: Simplified BSD-style license (see COPYING)

Initial release date 1.0.0: 2011-03-24
Release of PSMoveAPI 1.0.2: 2011-12-03

Updated: 2012-08-07

moveonpc's People

Contributors

thp avatar horrendus avatar syndic avatar sntx avatar

moveonpc's Issues

How do we extract the data from your app

I would like to use the Sharpshooter+Move in a program, how do I obtain the 
data from your app?

May I make a suggestion? The most effective/easiest way would be via 
subclassing/sendmessage

My app would send your app a message containing it's hWnd, and you use send 
message to send the data back to that hWnd.

Original issue reported on code.google.com by [email protected] on 8 May 2012 at 4:35

Sharpshooter and button support

I wasn't able to test yet (don't have bluetooth) but does your app sample the 
button states, both on Move and the Sharpshooter?

Original issue reported on code.google.com by [email protected] on 8 May 2012 at 4:32

[PSMOVE WARNING] Magnetometer in b4:67:e9:f8:21:73 not yet calibrated.

What steps will reproduce the problem?
1. I open up the tracker_image example with Processing 2.0.1
2. I try to run it and it gives me this error: [PSMOVE WARNING] Magnetometer in 
b4:67:e9:f8:21:73 not yet calibrated.

What version of the product are you using? On what operating system?
I'm using Processing 2.0.1, and Mountain Lion on a Macbook Pro

What can I do?
Greets :)

Original issue reported on code.google.com by [email protected] on 1 Aug 2013 at 7:32

Error found in moveonpc_2012-05-29_r40.zip/winhid.cpp(219)

What steps will reproduce the problem?
1. Just open winhid.cpp and look at line 219 :)

What is the expected output? What do you see instead?
Expected: HidD_GetInputReport = (HidReportFunction)GetProcAddress(hid_dll, 
"HidD_GetInputReport");
Saw: HidD_GetInputReport = (HidReportFunction)GetProcAddress(hid_dll, 
"HidD_SetOutputReport");

What version of the product are you using? On what operating system?
moveonpc_2012-05-29_r40.zip

Please provide any additional information below.
I am trying the PS MOVE through standard BT driver on Windows 7 Pro, while I 
found "-r40.zip" dose not completely support Move on standard BT. The funtion 
"ReadMoveReport()" tries MIJ and USB only but it seems not reasonable. Then, I 
tried using HidD_GetInputReport() in this function but it just did not work! 
After a long time of dizzily debugging, I finally found this "small" bug. Now 
the code works for standard BT device happily.

Original issue reported on code.google.com by [email protected] on 8 Oct 2012 at 5:31

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.