We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › wrj4P5, WiiRemote P5 Library - Alpha
Pages: 1 2 3 ... 16
wrj4P5, WiiRemote P5 Library - Alpha (Read 93299 times)
wrj4P5, WiiRemote P5 Library - Alpha
Aug 12th, 2007, 4:24pm
 
Hi all,

This is a WiiRemote access library wrj4P5, powered by WiiRemoteJ that is a pure Java Library communicate with WiiRemotes via a bluetooth device.

wrj4P5 allows
-receiving sensed 3D acceleration from at most 7 WiiRemotes, WiiNunchuks and
-receiving Buttons event from at most 7 Remotes, Nunchuks and ClassicControllers and
-receiving sensed IR-Image (2D position & size) from at most 7 Remotes and
-checking AnalogStick/AnalogPad position from at most 7 Nunchuks and ClassicControllers and
-sending control instructions for LEDs, vibrator and speaker of at most 7 Remotes.

jars & codes & How-To->
 https://sourceforge.jp/projects/wrj4p5

samples ->
 http://www.geocities.jp/classiclll_newweb/AttitudeAnalisys1/applet/index.html
 http://www.geocities.jp/classiclll_newweb/Acceleration/applet/index.html
 http://www.geocities.jp/classiclll_newweb/IraIraBar/applet/index.html
 http://www.geocities.jp/classiclll_newweb/MyFirstWii/applet/index.html

Though this is just an alpha release and needs a commercial license, i hope you enjoy.

[Requirements]
OS : Windows, Mac OSX, Linux
jre : 1.5+
newest Processing(Proce55ing) PDE
BlueTooth dongle
WiiRemote (1 to 7)
WiiNunchuk (0 to 7)
WiiClassicController (0 to 7)
WiiRemoteJ.jar
  : WiiRemote Java Lib. developed by cha0s in http://www.wiili.org/
    You can get freely from http://www.wiili.org/forum/what-is-wiiremotej-t2356.html
    deeply thanks, cha0s.
avetanabluetooth.jar
  : Open source BlueThooth(JSR82) implementation, only for linux.
    You can get the lib from
       http://sourceforge.net/projects/avetanabt/
    For Windows/MacOSX, this is on commercial distribution, free for first 14-days.
    You can get unlimited license by paying 25 euro, from
       http://www.avetana-gmbh.de/avetana-gmbh/jsr82.xml
[edit]
  Only for Windows, a free JSR82 implimentaion library becomes available.
  The BlueCove can be get from
      http://code.google.com/p/bluecove/
   Rename bluecove-2.0.1.jar to avetanabluetooth.jar, and put the proper position instead of avetana.  My all skeches run well.

  *I'm looking for another proper implementation of bluetooth(JSR82) for OSX.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #1 - Sep 10th, 2007, 5:02pm
 
I cannot get this to work...

I have downloaded both the vrj4p5, and the loc, and put them in the processing/libraries folder. I loaded the code from one of the examples and play, then this error occures:

ou need to dodify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "lll.wrj4P5" In the code folder or in any libraries.

I have tried moving them around to the code folder and back to the libraries folder and tried keeping the lll folder, tried putting them both in that folder, tried loosing that folder and putting them directly... Nothing works!?

Any suggestions?

morten_beta
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #2 - Sep 10th, 2007, 5:10pm
 
see
https://sourceforge.jp/projects/wrj4p5/document/SetUp/en/4/SetUp.txt

can you see the above entry in Docs of the project page?
i will check the authority setting of these docs.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #3 - Sep 11th, 2007, 9:45am
 
No, cant see that intry. I have tried looking at the link you sent me...

Still no luck. But I am wondering do I need more that the Wrj4P5 and the Loc lib?

The link mentions this:

- wrj4P5
  - Library
   - avetanabluetooth.jar
   - wiiremotej.jar
   - wrj4P5.jar
   = Loc.jar

What exactly is the avetanabluetooth.jar, and the wiiremotej.jar? I have not come across them until now...

Thanks for your response!

morten_beta
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #4 - Sep 11th, 2007, 1:32pm
 
Okay got 'em all now, but I still cannot seem to get til hieraki correct... I have tried several combinations now...

morten_beta
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #5 - Sep 11th, 2007, 4:03pm
 
please use easy english to tell me.
with my poor English skill, it is a little hard to understand your intention  and problem.
is your ploblem the way to get jars of WiiRemoteJ and Avatana?
if so,  i have mentiond above.

...or another problem?

Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #6 - Sep 11th, 2007, 8:28pm
 
Oh Sorry!

I did not know. No my problem is placing the libraries in the right order, in order for it to work. I have tried different ways to place the in the libraries folder, but I keep getting this:

ou need to dodify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "lll.wrj4P5" In the code folder or in any libraries.

morten_beta
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #7 - Sep 12th, 2007, 5:40pm
 
this is my first java development without Processing.
the thing i can only show you is my environment.
MacOSX+eclipse
project test: buildpath "core.jar","lll/lll (Class Folder)","JRE System Library"
project lll   : buildpath "core.jar","WiiRemoteJ.jar","avatanabluetooth.jar","JRE Sys"
   package lll.Loc
   package lll.wrj4P5

is above answer for you?

... or problem at Processing installing?    sorry
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #8 - Sep 20th, 2007, 1:24pm
 
a new sketch is here
http://www.geocities.jp/classiclll_newweb/AttitudeAnalysis1/applet/index.html
and mapped jpeg is
http://www.geocities.jp/classiclll_newweb/AttitudeAnalysis1/applet/4face.jpg
free JSR82 implimentation BlueCove is available
Reply #9 - Sep 22nd, 2007, 4:12pm
 
Classiclll wrote on Aug 12th, 2007, 4:24pm:
avetanabluetooth.jar
    For Windows/MacOSX, this is on commercial distribution, free for first 14-days.

    You can get unlimited license by paying 25 euro, from
http://www.avetana-gmbh.de/avetana-gmbh/jsr82.xml

  *I'm looking for another proper implementation of bluetooth(JSR82).


Only for Windows, a free JSR82 implimentaion library becomes available.
The BlueCove can be get from
      http://code.google.com/p/bluecove/

Rename bluecove-2.0.1.jar to avetanabluetooth.jar, and put the proper position instead of avetana.
My all skeches run well.
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #10 - Sep 24th, 2007, 1:18pm
 
morten_beta wrote on Sep 11th, 2007, 8:28pm:
Oh Sorry!

I did not know. No my problem is placing the libraries in the right order, in order for it to work. I have tried different ways to place the in the libraries folder, but I keep getting this:

ou need to dodify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "lll.wrj4P5" In the code folder or in any libraries.

morten_beta


I also found all of this a little confusing...  In the end got it working by placing a copy of the wrj4P5 folder in both (which doesn't seem right : )

processing\libraries

and ALSO in:

processing\libraries\lll\


Then had to do a bit of fiddling before it picked up my Wiimote - had to reconnect it to the Bluetooth whilst the processing file was searching for a wiimote.

Still really glad to be able to start experimenting so thanks Classiclll!!!
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #11 - Sep 24th, 2007, 4:25pm
 
i think i understand your point.
both WinXP and MacOSX, the following cases do well.
1 libraries\wrj4p5\(jars)
2 libralies\lll\wrj4p5\(jars)
this may be my misunderstand of the java environment.
but there is no need to put (jars) in both 1 ans 2.
is this a difference between yours and mine?
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #12 - Sep 24th, 2007, 6:03pm
 
Just tested this again and it looks like you're right.  I removed the instance under processing\libraries\ and it still works fine, so perhaps it was something else I did that got it working for me.

----------------------------------------------------

A couple of useful tips for others trying this out:

1.  When I first connect the Wiimote up to Bluetooth it remains in discovery mode.  When I then try and connect to the Processing application with 1 & 2 nothing happens.  I've found that first pressing the Wiimote power button to 'switch it off' and then hitting 1 & 2 to enter discovery mode gets around this problem.  Subsequent attempts to connect should work fine with just 1 & 2 as long as you do the following:

2.  Make sure you 'switch off' your Wiimote before closing your Processing application so that you see the "Remote disconnected" message in the output window.  In my case if I fail to do this it buggers something up with the Bluetooth stack which seems to require a system restart to fix Sad

By following these two steps I'm finding this fairly reliable and can now definitely get on with some experimenting Smiley

Thanks again!
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #13 - Sep 25th, 2007, 5:50pm
 
thank you for your tips, blindfish.
my main pc is mac, so insufficient trial is made on win pc. (and nothing is done on linux.)
your information is a worthwhile one.

by the way, this topic is for WiiRemoteJ's usage other than a processing one.
i propose this information exchanging continue in the wiili.org forum.
 http://www.wiili.org/forum/wiiremotej-f68.html
the finalized tips will be mentioned here.

is this ok?
(wiili needs an account like here)
Re: wrj4P5, WiiRemote P5 Library - Alpha
Reply #14 - Sep 26th, 2007, 3:44am
 
Hi all
i must be hospitalized in one or two weeks.
pls wait for my reply till being out of hospital.
Pages: 1 2 3 ... 16