Weird error, when executing testview.py I cant test motor and LED values, but the camera window remains black.
This is my output:
[nacho@myhost examples]$ python2.7 testview.py
(testview.py:1803): Clutter-CRITICAL *_: Unable to retrieve the geometry of the foreign window: XGetGeometry() failed (status code: 0)
[Stream 70] Expected max 1748 data bytes, but got 1908. Dropping...
Traceback (most recent call last):
File "testview.py", line 240, in _on_depth_frame
self.depth_texture.set_from_rgb_data(data, False,frame_mode.width,frame_mode.height, 0, frame_mode.bits_per_pixel/8, 0)
File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
return info.invoke(_args, *_kwargs)
TypeError: set_from_rgb_data() takes exactly 7 arguments (8 given)
Traceback (most recent call last):
File "testview.py", line 250, in _on_video_frame
0, frame_mode.bits_per_pixel/8, 0)
File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
return info.invoke(_args, **kwargs)
TypeError: set_from_rgb_data() takes exactly 7 arguments (8 given)
data, frame_mode = kinect.get_depth_frame_grayscale()
self.depth_texture.set_from_rgb_data(data,False,frame_mode.width,frame_mode.height,0,frame_mode.bits_per_pixel/8, 0)
Which is kinda weird because I see 7 arguments instead of 8, I have tried some other argument sets like:
self.depth_texture.set_from_rgb_data(data,False,640,480,0,3, 0)
but got the same results.