Skip to content

Instantly share code, notes, and snippets.

View amiller's full-sized avatar

Andrew Miller amiller

View GitHub Profile
[Stream 70] Invalid magic c0ff
[Stream 70] Lost 23 packets
[Stream 70] Lost too many packets, resyncing...
[Stream 80] Invalid magic 0101
[Stream 80] Invalid magic 0201
raw acceleration: -62 845 -56 mks acceleration: -0.742384 10.117972 -0.670540[Stream 80] Invalid magic 0301
raw acceleration: -38 829 -72 mks acceleration: -0.455009 9.926389 -0.862123[Stream 70] Invalid magic ca79
[Stream 70] Lost 1 packets
[Stream 70] Lost 4 packets
raw acceleration: -55 845 -56 mks acceleration: -0.658566 10.117972 -0.670540[Stream 70] Inconsistent flag 75 with 119 packets in buf (242 total), resyncing...
High Speed device @ 5 (0x26230000): ............................................. Composite device: "Xbox NUI Camera"
Port Information: 0x0019
Captive
External Device
Connected
Enabled
Device Descriptor
Descriptor Version Number: 0x0200
Device Class: 0 (Composite)
Device Subclass: 0
static void init_thread(void)
{
thread_running = 1;
freenect_init(&ctx, 0);
pthread_attr_t pta;
pthread_attr_init(&pta);
pthread_attr_setschedpolicy(&pta, SCHED_FIFO);
pthread_create(&thread, &pta, init, NULL);
}
import sys
sys.path += ['..']
import cv
import numpy as np
from visuals.pykinectwindow import Window
from OpenGL.GL import *
from OpenGL.GL.ARB.vertex_buffer_object import *
import calibkinect
# This module requires IPython to work! It is meant to be used from an IPython environment with:
# ipython -wthread and -pylab
# See demo_pykinect.py for an example
import wx
from wx import glcanvas
from OpenGL.GL import *
# Get the app ourselves so we can attach it to each window
if not '__myapp' in wx.__dict__:
Administrator@andrew-6a3ff82a /o/amiller On My Mac/Desktop/libfreene
ct/build
$ mingw32-make.exe
[ 5%] Building CXX object src/CMakeFiles/freenect.dir/__/platform/windows/libus
b10emu/libusb-1.0/libusbemu.cpp.obj
O:\amiller On My Mac\Desktop\libfreenect\platform\windows\libusb10em
u\libusb-1.0\libusbemu.cpp: In function 'typename LibTranslator<T>::TranslatedTy
pe* translate(const T*)':
O:\amiller On My Mac\Desktop\libfreenect\platform\windows\libusb10em
u\libusb-1.0\libusbemu.cpp:49:43: error: expected primary-expression before ')'
....
'-I', '/Library/Python/2.6/site-packages/numpy-1.5.1-py2.6-macosx-10.6-universal.egg/numpy/core/include',
'-I', '/usr/local/include',
'-I', '../c_sync/',
'-I', 'wrappers/c_sync/',
.....
diff --git a/wrappers/actionscript/server/as3-server.c b/wrappers/actionscript/server/as3-serve
index cd5e99c..1eb57b0 100644
--- a/wrappers/actionscript/server/as3-server.c
+++ b/wrappers/actionscript/server/as3-server.c
@@ -93,7 +93,10 @@ void *data_out(void *arg) {
while(data_connected){
usleep(1000000 / 30); // EMULATE 30 FPS
char buffer_send[3*2+3*8];
- freenect_sync_get_accelerometers(&ax, &ay, &az, &dx, &dy, &dz, 0);
+ freenect_raw_tilt_state *state;
traceroute to office.greenwireit.com (70.88.63.81), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 2.139 ms 3.454 ms 1.638 ms
2 10.106.48.1 (10.106.48.1) 13.390 ms 14.283 ms 16.394 ms
3 72-31-194-166.net.bhntampa.com (72.31.194.166) 56.075 ms 84.859 ms 96.128 ms
4 71-44-60-42.net.bhntampa.com (71.44.60.42) 213.997 ms 285.961 ms 161.619 ms
5 ae1s0-orld71-cbr1.noc.bhn.net (72.31.194.8) 48.452 ms 135.137 ms 56.193 ms
6 77.228.95.24.cfl.res.rr.com (24.95.228.77) 56.549 ms 54.638 ms 62.074 ms
7 ae-3-0.cr1.atl20.tbone.rr.com (66.109.6.104) 42.669 ms 20.700 ms 22.648 ms
8 ae-1-0.pr0.atl20.tbone.rr.com (66.109.6.177) 27.975 ms 23.919 ms 23.866 ms
9 66.109.11.34 (66.109.11.34) 36.033 ms
tilelayer.getTileUrl = function(tile,zoom) {
if ((zoom < mapMinZoom) || (zoom > mapMaxZoom)) {
return "http://www.maptiler.org/img/none.png";
}
var ymax = 1 << zoom;
var y = ymax - tile.y -1;
var tileBounds = new GLatLngBounds(
mercator.fromPixelToLatLng( new GPoint( (tile.x)*256, (tile.y+1)*256 ) , zoom ),
mercator.fromPixelToLatLng( new GPoint( (tile.x+1)*256, (tile.y)*256 ) , zoom )
);