Extended Wii Motion Plus Support: There now exists a OrientationEvent to obtain the Wiimotes relative orientation to the starting point. During error aggregation it's getting unprecise and needs continuous resets. The demo-gui now has a panel to orientate a 3D cube. If no WM+ is attached, the panel is there, too. This would be addressed if the Wii Motion Plus detection works well and if I've integrated support for other extensions, like Nunchuck (I finally got one for testing!). Feel free to donate me some money, that I can get some more extensions integrated to become wiigee the ultimate Wii library with integrated gesture recognition for Java. There also is an improvement for the Hidden Markov Model in the works. Thanks Marc for providing this helpful information! :)

git-svn-id: svn://svn.code.sf.net/p/wiigee/code/trunk@94 c7eff9ee-dd40-0410-8832-91a4d88773cf
This commit is contained in:
bepo23
2009-06-25 13:14:34 +00:00
parent 2765a04a9f
commit 217ae04e8b
30 changed files with 138 additions and 91 deletions

View File

@@ -3,7 +3,7 @@
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -3,7 +3,7 @@
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*
@@ -30,18 +30,12 @@ import org.wiigee.device.Device;
public class ActionStartEvent extends EventObject {
protected Device source;
protected boolean trainbutton;
protected boolean recognitionbutton;
protected boolean closegesturebutton;
public ActionStartEvent(Device source) {
super(source);
this.source=source;
}
public Device getSource() {
return this.source;
}
/**

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*
@@ -29,15 +29,8 @@ import org.wiigee.device.Device;
public class ActionStopEvent extends EventObject {
protected Device source;
public ActionStopEvent(Device source) {
super(source);
this.source=source;
}
public Device getSource() {
return this.source;
}
}

View File

@@ -3,7 +3,7 @@
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*
@@ -24,8 +24,6 @@
package org.wiigee.event;
import java.util.EventObject;
import org.wiigee.device.*;
/**

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*
@@ -44,14 +44,4 @@ public interface GestureListener extends EventListener {
*/
public abstract void gestureReceived(GestureEvent event);
/**
* This method would be called if the gesture-recognizing system
* switched the state from recognition to training or otherwise.
*
* @param event The StateEvent containing information about the
* state-change.
*/
public abstract void stateReceived(StateEvent event);
}

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -1,9 +1,9 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008 Benjamin Poppinga
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: benjamin.poppinga@informatik.uni-oldenburg.de
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*

View File

@@ -0,0 +1,49 @@
/*
* wiigee - accelerometerbased gesture recognition
* Copyright (C) 2007, 2008, 2009 Benjamin Poppinga
*
* Developed at University of Oldenburg
* Contact: wiigee@benjaminpoppinga.de
*
* This file is part of wiigee.
*
* wiigee is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package org.wiigee.event;
import java.util.EventListener;
/**
*
* This is the StateListener interface which has to be implemented
* by any application which should receive recognized statechanges.
*
* @author Benjamin 'BePo' Poppinga
*
*/
public interface StateListener extends EventListener {
/**
* This method would be called if the gesture-recognizing system
* switched the state from recognition to training or otherwise.
*
* @param event The StateEvent containing information about the
* state-change.
*/
public abstract void stateReceived(StateEvent event);
}