Forums > Java

wii gesture recognition

September 19, 2009 | 1:27 pm

Hi All!

I’m trying to develop a patch in max to recognize wii gestures,
but it has been very difficult since I’m not getting very accuracy in the results.
I think I’m not treating right the raw data from wii (osculator-osc).
So I was trying to translate this java code (www.wiigee.org) to mxj
but it has been hard since I’m a novice in java.
They have a paper about the work they develop and the source code in the web site (www.wiigee.org).
Can anyone help? I would be very much grateful, and I think the community also.

Best Regards,
DC


September 20, 2009 | 6:53 pm

Hi again!
Any feedback please?

thanks


September 21, 2009 | 11:34 am

Hi All!
I think I was being too general about the question I was posting to the forum, that probably lead to some miss understanding.
I was asking help to integrate wiigee java library (that you can find in http://www.wiigee.org) in a mxj Max object.
I think what is needed is to create links between the wiigee library and max. Sadly, I only know the basics of basics of mxj, so I was asking if there is any experienced MXJ user in the community who would like to help on integrate wiigee on Max.

thanks again,
dc


September 23, 2009 | 8:56 am

Interesting, are you planning to make a game?
Sadly, I’m just starting to use mxj so I can’t help you.


September 23, 2009 | 9:28 am
kunio2012 wrote on Wed, 23 September 2009 09:56
Interesting, are you planning to make a game?
Sadly, I’m just starting to use mxj so I can’t help you.

Hi!
Well I’m interested in use gesture recognition for musical purposes.
But imagine the possiblities…
I’m in the same situation as you do about mxj…

thanks for the reply,
best regards,
dc


September 28, 2009 | 12:13 pm

Why don’t you use [hi] (Human Interface (gaming) device input)?
You don’t have to use external java code to recognise the wii into the Max world…

I’m also starting with mxj, and I think there are a many differences between raw java code and Java in Max.


September 29, 2009 | 12:58 am

Just saw this tonight in the jitter forum:

http://ftm.ircam.fr/index.php/Gesture_Follower

and it looks great -you could use it to analyse the wii data and identify your gestures.

i also have a gesture recognition external for max written in java which was never used. It was working but it’s still a bit of a mess. If you’d like to try it too, let me know and i’ll email it.

jan

IntonaRumori wrote on Wed, 23 September 2009 03:28
Hi!
Well I’m interested in use gesture recognition for musical purposes.
But imagine the possiblities…
I’m in the same situation as you do about mxj…

thanks for the reply,
best regards,
dc


October 23, 2009 | 1:37 pm

Hi,

I have implemented Wiigee with Open Sound Control + max/msp, see video on http://www.youtube.com/watch?v=FvsB318GNg4

here is the java class you need to add, then change the 2 lines of code in netbeans as shown in the video, can’t enclosed netbeans project, send me a mail and will send zip file

package gesture;

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author liamdonaghy
*/

import oscP5.*;
import netP5.*;

public class GlobalDataStore {

OscP5 oscP5;
NetAddress myRemoteLocation;
int obj_id;
String lyric="lyric1"; //static osc ID

public static long globalData = 0;

public GlobalDataStore(){

myRemoteLocation = new NetAddress("127.0.0.1",12005);
oscP5 = new OscP5(myRemoteLocation,12001); //needs sender port

}

void set_obj_id(int id){

this.obj_id=id;

}

void set_lyric(String id){

this.lyric=id;

}

String ret_lyric(){

return this.lyric;

}

void send(String address, int data){

OscMessage myMessage = new OscMessage(address);
myMessage.add(data);
oscP5.send(myMessage, myRemoteLocation);

}
void send(String address, float data){

OscMessage myMessage = new OscMessage(address);
myMessage.add(data);
oscP5.send(myMessage, myRemoteLocation);

}

void send(String address, String data){

OscMessage myMessage = new OscMessage(address);
myMessage.add(data);
oscP5.send(myMessage, myRemoteLocation);

}

}

// linkup.send("/daft/"+linkup.ret_lyric(),this.gesturenames.get(event.getId())); //

// GlobalDataStore linkup = new GlobalDataStore() ; //set up


October 23, 2009 | 2:07 pm

Hi All!
In response to jan.jdo.
Many thnaks for your sugestion, I already tried gesture follower
but I had some issues with it. I think it’s not very stable.

liam Donaghy many thanks for your great work, that was what I was looking for a while, but unfortunately I didn’t have enough knowledge to solve it by myself.
I think this could be a great tool in the future with further development of wiigee.
Thanks to all.

best regards,
dc


October 23, 2009 | 3:01 pm

Will contact the author of wiigee and get him to add in OSC as he liked the video and has posted a comment.

Think everyone in max/msp world would like the one mxj object, but the reality is that many applications need to talk to each other and Open Sound Control (OSC) allows for this, so the lesson is to get all developers of audio software to facilitate integration of OSC as this would build many bridges between software vendors and encourage a move to technologies complementing each other rather than competing.

Ahh, if every software vendor was like Cycling74…..


Viewing 10 posts - 1 through 10 (of 10 total)