markyparky56 wrote:
johnnydean1 wrote:
SHowell wrote:
The remote sensor network communications document I found only mentions sending broadcast and sensor-updates for named global variables, I see no way to send a list. Can you link to some further documentation?There is no documentation I am afraid - this forum is probably the expert. What I mean is if you have a list
#( 'R' 'R' 'G' 'B' )
and you turn it into a single string.
"R,R,G,B"
you could send that by the sensor-update to set a (|list| sensor value) block.
You could then use Scratch by saying:
replace item 1 of SCRATCHList with (letter 1 of (|list| sensor value) )
replace item 2 of SCRATCHList with (letter 3 of (|list| sensor value) )
replace item 3 of SCRATCHList with (letter 5 of (|list| sensor value) )
replace item 4 of SCRATCHList with (letter 7 of (|list| sensor value) )
so your ScratchList would have all the list transfered.
I hope this helps.
NOTE:
To send lists to Scratch/Incorperate them into strings, would require modifying Scratch's Source Code Found HereTwo things.
1. RRGB? Why is there two Rs?
2. RGB as far as I know can be upto 3 digits long, e.g. 255-255-255 is pure white and 0-0-0 is pure black.
The reason of having 2 R's is to demonstrate it will work with the same list item.
0-0-0 (Pure black) could be made into
000-000-000 and then transfered so all the strings are the same lengths.
Offline
johnnydean1 wrote:
The reason of having 2 R's is to demonstrate it will work with the same list item.
Like a way of telling which RGB belongs to which figure?
0-0-0 (Pure black) could be made into
000-000-000 and then transfered so all the strings are the same lengths.
That would get complicated when you get things like: 7-255-59, might slow things down a bit.
Offline
Hi,
I have incorporated SHowell into SenseBloom's OSCeleton's code and made one that works for normal OSC, Animata and Scratch. Those of you that are using OSCeleton should be able to recompiled by replacing the OSCeleton.cpp by this one.
Let me know if there is any problem with it.
I added a -c option to enable Scratch compatibility mode. -d would turn on debugging.
I have also moved the broadcast to Scratch action to *after* the initialization of the Kinect.
To start using this:
./osceleton -c
https://docs.google.com/leaf?id=0B6WdOUYoT-ZIY2QzYmRkZTYtMmM5ZC00ZjNhLTk1NjctZGZlMDJiM2U2Mzg0&hl=en&authkey=COKT4OsL
Enjoy!
Edwin
Offline
Okay, it rocks. I used FAAST 0.07 to check my calibration pose. This helped me with calibrating the Kinect. No conflict running both programs.
I noticed on the sensor blocks you were able to set up "[torso_x] sensor value". When I click on the drop-down list I get the regular sensor options based on (I'm assuming) picoboard settings.
What did you do to get the [torso_x] as a sensor value drop-down menu choice?
3/23/11
Nevermind, hooked up Kinect, started Kinect2Scratch, opened a blank Scratch file, and the sensor values were available, with the "z" dimension! Brilliant.
Thank you for taking the time to do this.
Last edited by StuckySTL (2011-03-23 12:49:51)
Offline
whenever i open the openni to scratch .exe it works for about half a second and then freezes and i get this message
"Problem signature:
Problem Event Name: APPCRASH
Application Name: OpenNIToScratch.exe
Application Version: 0.0.0.0
Application Timestamp: 4d28a5ba
Fault Module Name: openNI.dll
Fault Module Version: 1.0.0.23
Fault Module Timestamp: 4cff5dd2
Exception Code: c0000005
Exception Offset: 0000ca15
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789"
PLEEEEEASE HELP!!!!!!!!!!!!!!!
Offline
wait i fixed it but now its saying
---------------------------------------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at xnSetMapOutputMode(XnInternalNodeData* , XnMapOutputMode* )
at ScratchServer.LaunchKinect()
at OpenNI2ScratchGUI.Form1.connectToKinect_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
OpenNI2ScratchGUIOO
Assembly Version: 1.0.4030.39464
Win32 Version:
CodeBase: file:///C:/Users/Mark/Desktop/OpenNI2ScratchGUI7.exe
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.4926
Win32 Version: 9.00.30729.4926
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Offline
This is really great! the only question I have is how do I use this information? I'm stoked to see all x/y/z co-ordinates, but what now? I have my ideas, but how is it implemented in scratch?
Offline
thats so amazing
Offline
Daaaarrrrn Why did I have to buy a kinect with xbox bundle!? -.-
Offline
Hi everyone,
I'm on a Windows XP and can't get Stephen Howell's OpenNI2ScratchGUI7 (from old blog) or Scratch2Kinect (downloaded by request from his new site) to work. "System.AccessViolationException: Attempted to read or write protected memory" keeps popping up with OpenNI2ScratchGUI7 (with .Net3 and .Net4) while Scratch2Kinect wouldn't work even after installing .Net4.
I followed the Windows XP installation instructions on his old blog (http://stephen-howell.tumblr.com/post/4549150784/hi-stephen-what-you-have-achieved-looks-really) but was not able to copy the xml files from steps 8 & 9 since I could find them. Though I'm able to see my image in NiViewer and Kinect appears in my Device Manager. Can anyone help? Any info at all would be greatly appreciated!
OS: Windows XP Service Pack 3
Installation software:
OpenNI Unstable build for WIndows x86 (32-bit) v1.5.2.23 Development Edition
Microsoft .NET Framework 3.0 Redistributable Package (X86)
PrimeSense Sensor Module for OpenNI (Version 5.1.0.25 version - Dec 18th 2011)
NITE (from link http://kinmob.googlecode.com/files/NITE-Win32-1.3.0.17.exe)
Offline
Hi Mingdaines,
Sorry I missed your query. That version is very old. I have a newer version for XP. You can email me directly from scratch.saorog.com and I will send it to you if you till want to code for Kinect on XP. If you have Windows 7, it is much better.
Regards,
Stephen
mingdaines wrote:
Hi everyone,
I'm on a Windows XP and can't get Stephen Howell's OpenNI2ScratchGUI7 (from old blog) or Scratch2Kinect (downloaded by request from his new site) to work. "System.AccessViolationException: Attempted to read or write protected memory" keeps popping up with OpenNI2ScratchGUI7 (with .Net3 and .Net4) while Scratch2Kinect wouldn't work even after installing .Net4.
I followed the Windows XP installation instructions on his old blog (http://stephen-howell.tumblr.com/post/4549150784/hi-stephen-what-you-have-achieved-looks-really) but was not able to copy the xml files from steps 8 & 9 since I could find them. Though I'm able to see my image in NiViewer and Kinect appears in my Device Manager. Can anyone help? Any info at all would be greatly appreciated!
OS: Windows XP Service Pack 3
Installation software:
OpenNI Unstable build for WIndows x86 (32-bit) v1.5.2.23 Development Edition
Microsoft .NET Framework 3.0 Redistributable Package (X86)
PrimeSense Sensor Module for OpenNI (Version 5.1.0.25 version - Dec 18th 2011)
NITE (from link http://kinmob.googlecode.com/files/NITE-Win32-1.3.0.17.exe)
Offline