Giter Site home page Giter Site logo

Comments (8)

jonbinney avatar jonbinney commented on June 28, 2024

Hmm... I'm not able to view the xtion image with /usr/bin/NiViewer in the openni-utils package. When I run it i get:

jbinney@bih-> /usr/bin/NiViewer 
Open failed: Bad Parameter sent to the device!
Press any key to continue . . .

Is that the executable you use to view SXGA resolution images from the xtion? Could you run "dpkg -l|grep openni" and post the result so I can make sure we have that same versions of things?

from openni_camera.

alireza-hosseini avatar alireza-hosseini commented on June 28, 2024

Actually i have got the the same error using the recent openni (1.5.4.0-3+precise1) and sensor(5.1.0.41-2+precise1) packages from ROS repository.So I manually installed OpenNI-Bin-Dev-Linux-x64-v1.5.2.23 and Sensor-Bin-Linux-x64-v5.1.0.41 downloaded from Openni Github and the problem solved. NiViewer worked properly and also SXGA RGB image resolution Viewed successfully.
It seems that libopenni-sensor-primesense0 package(or maybe libopenni0 ?) in the ROS repository is especially configured for Microsoft Kinect according to its description:
"Microsoft Kinect sensor modules for the OpenNI framework"
So with no doubt Openni driver supports SXGA image resolution for Asus Xtion Pro Live.

from openni_camera.

jonbinney avatar jonbinney commented on June 28, 2024

The openni packages in the ros repos are patched to work with the kinect, but also work with the xtion. As you've noticed though, they don't support SXGA resolution. I'll try this tomorrow with the openni packages from github.

from openni_camera.

jonbinney avatar jonbinney commented on June 28, 2024

I managed to get SXGA images from the Xtion, but to do so I had to change formats and have the Openni drivers output RGB24 instead of YUV422. For some reason this seems to have broken the VGA and QVGA resolution outputs.

from openni_camera.

jonbinney avatar jonbinney commented on June 28, 2024

Here are the changes needed to make openni_camera do SXGA resolution with the xtion: https://gist.github.com/4508201

It's not stable enough to apply to the repo and release (for example it breaks the VGA and QVGA modes), but maybe being able to compile from source will be enough for you. A proper fix would require more changes; for instance it would probably require some logic to have the xtion output YUV422 images for VGA and RGB24 images for SXGA. I'm inclined to wait, since openni is releasing version 2.0 of their library, which is substantially different and which we will hopefully be moving to soon.

If you want to tackle the task of properly reworking openni_camera to handle SXGA without breaking the other modes, I'd be happy to merge it :-)

from openni_camera.

alireza-hosseini avatar alireza-hosseini commented on June 28, 2024

Thanks a lot jon, i think only SXGA RGB image would be enough for my project, but of course i would be glad to help you in fixing the code. I will do my best to handle SXGA along with other image modes, actually i need some time to read and understand the logic of the code. I will keep you posted ;-)

from openni_camera.

jonbinney avatar jonbinney commented on June 28, 2024

I'm going to go ahead and close this issue since I don't plan on adding this in anytime soon. If you get it working reliably, reopen as a pull request.

from openni_camera.

jkammerl avatar jkammerl commented on June 28, 2024

Note that the openni2_camera package does support SXGA RGB streaming:
https://github.com/ros-drivers/openni2_camera

from openni_camera.

Related Issues (20)

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.