plasmodic / ecto_openni Goto Github PK
View Code? Open in Web Editor NEWA small set of ecto tools and docs for dealing with openni cameras with plain old PODS.
A small set of ecto tools and docs for dealing with openni cameras with plain old PODS.
An ecto standalone openni capture suite. Outputs PODs.
xtion pro live and kinect have different params, need to auto select using the device ids or something, so that it just works.
sometime between rev 0547 and current master things break for me. at 0547 the kinect_standalone pops up two well behaved windows, now I get
Connecting to device.
Depth modes:
Mode 0 : xres= 320 yres= 240 fps= 30 distance=400
Mode 1 : xres= 320 yres= 240 fps= 60 distance=4.29497e+09
Mode 2 : xres= 640 yres= 480 fps= 30 distance=0
Mode 3 : xres= 320 yres= 240 fps= 30 distance=400
Mode 4 : xres= 320 yres= 240 fps= 60 distance=4.29497e+09
Mode 5 : xres= 640 yres= 480 fps= 30 distance=0
Mode 6 : xres= 320 yres= 240 fps= 30 distance=400
Mode 7 : xres= 320 yres= 240 fps= 60 distance=4.29497e+09
Mode 8 : xres= 640 yres= 480 fps= 30 distance=0
image modes:
Mode 0 : xres= 320 yres= 240 fps= 30 distance=400
Mode 1 : xres= 320 yres= 240 fps= 60 distance=4.29497e+09
Mode 2 : xres= 640 yres= 480 fps= 30 distance=0
Mode 3 : xres= 320 yres= 240 fps= 30 distance=400
Mode 4 : xres= 320 yres= 240 fps= 60 distance=4.29497e+09
Mode 5 : xres= 640 yres= 480 fps= 30 distance=0
Mode 6 : xres= 1280 yres= 1024 fps= 15 distance=6.074e+09
Mode 7 : xres= 640 yres= 480 fps= 30 distance=0
Mode 8 : xres= 640 yres= 480 fps= 30 distance=0
Mode 9 : xres= 320 yres= 240 fps= 60 distance=4.29497e+09
Mode 10 : xres= 320 yres= 240 fps= 30 distance=400
Mode 11 : xres= 320 yres= 240 fps= 25 distance=400.031
Mode 12 : xres= 640 yres= 480 fps= 25 distance=5
Mode 13 : xres= 320 yres= 240 fps= 25 distance=400.031
Mode 14 : xres= 640 yres= 480 fps= 25 distance=5
Mode 15 : xres= 640 yres= 480 fps= 25 distance=5
Mode 16 : xres= 320 yres= 240 fps= 25 distance=400.031
Mode 17 : xres= 1600 yres= 1200 fps= 30 distance=6.074e+09
attempting to turn on registration...
attempting to turn on sync...
Successful sync between depth and image.
Failed to start generating.Device Protocol: Bad Parameter sent!
303:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Connected to device.
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
Failed to update all contexts.A timeout has occurred when waiting for new data!
426:/home/troy/Projects/ecto_kitchen/src/openni/modules/Capture.cpp
and no windows. switching back and forth between the two revisions and recompiling reliably repeats the behavior.
python example.py
Connecting to device.
attempting to turn on registration...
Failed to start generating.Bad Parameter sent to the device!
303:/tmp/buildd/ros-fuerte-ecto-openni-0.3.8-0precise-20130313-1459/cells/Capture.cpp
Connected to device.
Failed to update all contexts.A timeout has occurred when waiting for new data!
430:/tmp/buildd/ros-fuerte-ecto-openni-0.3.8-0precise-20130313-1459/cells/Capture.cpp
Segmentation fault (core dumped)
I get the error above when running the following python example taken from the ECTO website:
#!/usr/bin/env python
import ecto
import ecto_openni
import ecto_pcl
plasm = ecto.Plasm()
# capture from kinect and downsample
device = ecto_openni.Capture( 'device' )
cloud_generator = ecto_pcl.NiConverter('cloud_generator')
viewer = ecto_pcl.CloudViewer( "viewer", window_name="Clouds!" )
graph = [ device[:] >> cloud_generator[:],
cloud_generator[:] >> viewer[:]
]
plasm.connect( graph )
if __name__ == "__main__":
from ecto.opts import doit
doit(plasm, description='test.')
This was reported by straszheim against ecto_pcl, but is actually an ecto_openni issue:
I installed the standalone openni dev package and ran some kinect-standalone scripts, I got the standard "cannot enumerate devices" errors that apparently indicate something like "permission denied". I played with it and dorked with udev... nothing. Then I installed the ros-electric-openni-kinect package and suddenly things worked. Can we figure out what the likely problem was and document it or (ideally) check for it and give a reasonable message other than "can't enumerate"?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.