GithubHelp home page GithubHelp logo

plasmodic / ecto_openni Goto Github PK

View Code? Open in Web Editor NEW
5.0 8.0 6.0 536 KB

A small set of ecto tools and docs for dealing with openni cameras with plain old PODS.

CMake 1.57% C++ 97.99% C 0.05% Python 0.39%

ecto_openni's Introduction

An ecto standalone openni capture suite. Outputs PODs.

ecto_openni's People

Contributors

vrabaud avatar ethanrublee avatar zittix avatar

Stargazers

Hao Cheng avatar Michael Anthony avatar Aurélien Plyer avatar Kurt Konolige avatar Troy Straszheim avatar

Watchers

Troy Straszheim avatar Daniel Stonier avatar  avatar peter karasev avatar Gary Bradski avatar James Cloos avatar Michael Anthony avatar Maria Dimashova avatar

ecto_openni's Issues

auto select depending on device

xtion pro live and kinect have different params, need to auto select using the device ids or something, so that it just works.

broken since 0457

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.

Segmentation Fault when trying to access Kinect through ecto_openni

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.')

openni w/o ros openni

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"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.