Find file History
Permalink
..
Failed to load latest commit information.
Fusion.java Sensor Fusion example in Java (using LWJGL) Jan 26, 2013
README
SensorReading.java
Tracker.java
build.xml

README

To use these examples, build the PS Move API with Java bindings in ../../build/
using CMake and Make. Then, you can build the examples using:

  ant compile

You can run the examples using:

  ant run-sensorreading
  ant run-tracker
  ant run-fusion


The Fusion example depends on LWJGL (http://www.lwjgl.org/), make sure to set
the right paths in build.xml (or remove Fusion.java to avoid building the example).
For Debian-based systems such as Ubuntu, you can install it using:

  apt-get install liblwjgl-java

In the case of Debian-based systems such as Ubuntu, the paths in build.xml will
alraedy be correct, so liblwjgl-java can be found.


Adding new examples:

  1. Copy an existing file (e.g. Tracker.java) to a new file (MyClass.java)
  2. Rename the class inside the file
  3. Add a new target to build.xml:

    <target name="run-myclass" depends="compile">
        <java classname="MyClass" classpathref="classpath"/>
    </target>

  4. Build and run the example with:

    ant run-myclass


To remove compiled files, use:

  ant clean