Re: [PD] Motion Plus Data to be used with Puredata/OSC-Data-stream

2009-12-14 Thread Luigi Rensinghoff

Hi Florian, Johannes an Mike

   after a little abstinence period i want to come back to my  
wiimote experiments and would like to know
how far the integration of the MotionPlus into the pd-external went  
meanwhile.


I setup up my laptop-environment and downloaded the latest stuff from  
svn.


So my first step was trying to compile it on my ubuntu laptop and some  
questions aroused, which
are based on the fact that i still dont know enough of c-programming  
and the compilation process.


I looked into the makefile.org file and tried to set up all pathes  
according to my system and here is my first

question:

it is referring to this part of the makefile.org


PD_PATH=../../../pd

# specify the path to CWiid:
#CWIID_PATH = $(ASCAPE_PATH)/usr/lib
LIBCWIID_PATH = cwiid-svn/libcwiid

##
# You shouldn't need to change anything beyond here! #
##


ifdef PD_PATH
PD_INCLUDE := -I$(PD_PATH)/src
PD_EXTRA_PATH := ../../../../lib/libs
PD_DOC_PATH := ../../../../lib/pd-help
else
PD_INCLUDE := -I../../../pd/src
PD_EXTRA_PATH := /usr/local/lib/pd/extra
PD_DOC_PATH := /usr/local/lib/pd/doc
endif



Since i have a somewhat unusual location of my files i ask my self if  
these pathes have to point to the locations where these files are

(taken from wiimote.c file)



#include stdio.h
#include unistd.h
#include sys/select.h
#include bluetooth/bluetooth.h
#include m_pd.h
#include math.h
#include cwiid.h




Is that Right ???

I am always confused whether the path means the location of the  
sources or the binaries.


I get the following error:
in line 55: balance_cal hat unvollständigen Typen
unbenutzter Parameter für mesg, timestamp ap

nicht deklariert für CWIID_FLAG_MOTIONPLUS


i guess some pathes are not set right

Another thing i never know wit the declaration of pathes...

When do i usequotes ??

like in

PD_PATH=/opt/sw/pure-data/pd
or
PD_PATH=/opt/sw/pure-data/pd


do i need the first slash ??


why is somtime an I used and sometimes not ?

---

i looked for the locations of my header files:

#include stdio.h
/usr/include
#include unistd.h
/usr/include/sys and
/usr/include
#include sys/select.h
#include bluetooth/bluetooth.h
#include m_pd.h
/usr/include and
/opt/sw/pure-data/pd/src
#include math.h
/usr/include
#include cwiid.h
/opt/sw/cwiid-0.6.00/libcwiid/
/usr/local/include

So my makefile should look like that - i thought

---

PD_PATH=/opt/sw/pure-data/pd

LIBCWIID_PATH=/opt/sw/cwiid-0.6.00/libcwiid

and further down:

PD_INCLUDE := -I$(PD_PATH)/src
PD_EXTRA_PATH:=/opt/sw/pure-data/pd/extra
PD_DOC_PATH:=/opt/sw/pure-data/pd/doc



I appreciate any help

Thanks Luigi




Am 03.Okt.09 um 03.Okt.09 MESZ 10:35 schrieb Luigi Rensinghoff:


Great..

Thanks a lot

Sounds Promising


Am 03.Okt.09 um 03.Okt.09 MESZ 10:23 schrieb Florian Krebs:


Hello,

I added Mike, the developer of the PD-External and IOhannes, who is  
also actively working with the External to our conversation.


I continued working on the PD-external a bit the last weeks, and I  
think it would be great to set up a repository for it.


@Mike Woz: Can we put it in the PureData development svn ?

What I did was basically integrate multiple bluetooth dongle  
support (to be able to use more than 7 wiimotes on one computer). I  
haven't used the MotionPlus so far, but as I remember my collegue  
IOhannes is planning to use this for a project in a couple of  
weeks, and also Mike has done some work with the MotionPlus for the  
External.


So again I would say next step is to put it in svn.

Greetings,

Florian





- Original Message - From: Luigi Rensinghoff postmas...@halbsolaut.de 


To: cw...@abstrakraft.org; flokadi...@yahoo.de
Sent: Friday, October 02, 2009 12:30 PM
Subject: Motion Plus Data to be used with Puredata/OSC-Data-stream



Hello there,

   i am writing to you because the web told me, that   
you are actively developing or working on the cwiid-library or the  
Wiimote-PD-External for Puredata.


I worked on a music-improvisation project with the wiimote and  
wrote quite a bit of PD-Patches and used the PD-External on linux,  
that  depends on the cwiid library.


I stopped further development because of the shortcomings due to  
accelerometers only and the complicated IR-Things with the wiimote.
When i heard of the release of the MotionPlus, i was very excited  
and  was looking forward to the time, when the MotionPlus was  
usuable with  the PD-External.


So now my question:

Is it possible to use the MotionPlus with a recent version of  
cwiid  and the pd-external ? What do i need to do for that ?

Simply compile the PD-External against a cwiid-MotionPlus branch ?

Did you make any tests with that ? I could read that it is still  
more  or less beta...


I further would like to know if you are planning to continue  

Re: [PD] Motion Plus Data to be used with Puredata/OSC-Data-stream

2009-12-14 Thread IOhannes m zmölnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luigi Rensinghoff wrote:
 Hi Florian, Johannes an Mike
 
after a little abstinence period i want to come back to my
 wiimote experiments and would like to know
 how far the integration of the MotionPlus into the pd-external went
 meanwhile.

don't know about the integration into PdX.
i have used the MotionPlus successfully in an installation with 6 wiis
in parallel.

 
 I setup up my laptop-environment and downloaded the latest stuff from svn.
 
 So my first step was trying to compile it on my ubuntu laptop and some
 questions aroused, which
 are based on the fact that i still dont know enough of c-programming and
 the compilation process.
 
 I looked into the makefile.org file and tried to set up all pathes
 according to my system and here is my first
 question:
 
 it is referring to this part of the makefile.org
 

why use makefile.org? is something wrong wrong with Makefile?


 Is that Right ???
 
 I am always confused whether the path means the location of the sources
 or the binaries.

not sure whether i fully understand.
you will need to find the headers (m_pd.h; cwiid.h) and the libraries
(libcwiid.so)

is it possible to properly install libcwiid properly (make install)?


 
 I get the following error:
 in line 55: balance_cal hat unvollständigen Typen
 unbenutzter Parameter für mesg, timestamp ap
 
 nicht deklariert für CWIID_FLAG_MOTIONPLUS

which version of libcwiid are you using?

you should use at least the version from svn for the MotionPlus)
(though there are problems with 2 wiis with that. flo has a hacked
version of cwiid for that)

 i guess some pathes are not set right

it's more like an incomatible header file...

 
 Another thing i never know wit the declaration of pathes...
 
 When do i usequotes ??
 
 like in
 
 PD_PATH=/opt/sw/pure-data/pd
 or
 PD_PATH=/opt/sw/pure-data/pd

shouldn't matter here.

 
 
 do i need the first slash ??

yes


 
 
 why is somtime an I used and sometimes not ?
 

it's not I but -I
the compiler takes arguments like -I/path/to/more/headers to add more
search paths for include files (the linker uses -L/path/to/more/libraries)

so the makefile often looks like:
PD_PATH=/opt/sw/pure-data/pd
CFLAGS=-I$(PD_PATH)/src

(which will expand to the CompilerFLAGS -I/opt/sw/pure-data/pd/src,
effectively adding the path to the directories searched for e.g. m_pd.h)




 ---
 
 i looked for the locations of my header files:
 
 #include stdio.h
 /usr/include
 #include unistd.h
 /usr/include/sys and
 /usr/include
 #include sys/select.h
 #include bluetooth/bluetooth.h
 #include m_pd.h
 /usr/include and
 /opt/sw/pure-data/pd/src
 #include math.h
 /usr/include
 #include cwiid.h
 /opt/sw/cwiid-0.6.00/libcwiid/
 /usr/local/include
 
 So my makefile should look like that - i thought

if the m_pd.h in /usr/include and /opt/... is the same and the cwiid.h
in /usr/local/... and /opt/... are the same, you shouldn't need to set
any special paths.


well, this doesn't help you much since i'm saying that everything should
work but it doesn't...but you really should use an svn version of
libcwiid: http://abstrakraft.org/cwiid/svn/trunk)
attached is a patch against cwiid (rev201) that adds multiresolution
MotionPlus data.
in this case i also created a Make.local (for the external), containing
snip
PD_INCLUDE += -DHAVE_CWIID_MOTIONPLUS_LOWSPEED
/snip


mar
IOhannes



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksmncwACgkQkX2Xpv6ydvQTxQCeMD853+YuESUTW/DAHZpIO+rL
CIkAoPVW0AgazRSBNtRsjlP0uQ4oZgJg
=1NKe
-END PGP SIGNATURE-

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list