← Back

ofxPSMoveService

github.com/DavidDiazGuerra/ofxPSMoveService · @DavidDiazGuerra
OF 0.11 Hardware Interface 3D / Point Cloud

PSMoveService client to use PSMove controllers in openFrameworks apps

1 0 Last commit 5y ago Created 5y ago

README

ofxPSMoveService (BETA)

PSMoveService client to use PSMove controllers in openFrameworks apps

In order to use it, you need to have a PSMoveService running with the controllers paired. It can be in the computer that is running the OF app or in another one in the same network.

The addon is still in beta stage, it works only on Windows systems and compiled for x64 platform. I haven't written a nice documentation yet, but you can find the list of the public functions in ofxPSMoveService.h, I think their names are obvious enough. It allows you to read the information about the state of the PSMove controllers connected to the PSMoveService, including their position if you have trackers running with your server, and modify the color of their LEDs and make them rumble.

example

The example included with the addon should show the status of the controller as in the following image:

<img src="example/screenshot.png" title="example screenshot">

If you have several controllers, you can select which one you want to see in the screen with the arrow keys. The position information will be "NO VALID" if you don't have trackers or they aren't properly calibrated, but will work fine if you have them. I couldn't get the linear and angular velocity and acceleration yet.

In addition, if you press the Move button of your controller its LED should turn white, the trigger should activate (and regulate) the rumbling, and pressing the SELECT button should reset the orientation to the "identity" pose (pointing down the -Z axis).

example-orientation

The example-orientation included with the addon should show the orientation of the controller using different as in the following image:

<img src="example-orientation/screenshot.png" title="example-orientation screenshot">

PSMoveService provides the orientation information as a quaternion using the same coordinate system used for the position information. ofxPSMoveService can transform this quaternion to the 3 alternative representations shown in this example:

As in the previous example, you can select which controller you want to see in the screen with the arrow keys and pressing the SELECT button of the controller should reset the orientation to the "identity" pose (pointing down the -Z axis).

Konwn bugs

Get this addon

HTTPS
SSH