Comments (8)
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.
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.
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.
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.
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.
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.
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.
Note that the openni2_camera package does support SXGA RGB streaming:
https://github.com/ros-drivers/openni2_camera
from openni_camera.
Related Issues (20)
- [ROS Lunar] many gcc warning
- Consolidate rgbd repositories into a single repo HOT 1
- 'process has died' while executing openni.launch with Kinect1 HOT 14
- Failed to load nodelet [/camera/rgb_rectify_mono] of type [image_proc/rectify] even after refreshing the cache: Failed to load library /home/ap4isr/kinetic_workspc/devel/lib//libimage_proc. HOT 2
- moving launch files for processing nodelets to a driver independent package HOT 14
- No point cloud when using hardware depth registration HOT 5
- Error with Kinect using standalone OpenNI only after installing openni_launch for ROS too HOT 1
- No Data by using Depth_Registration HOT 2
- Problem with IR image HOT 2
- No data received HOT 1
- Consolidate rgbd repositories into a single repo HOT 7
- ROS Lunar release disabled (since 1.11.0) HOT 1
- Melodic Release? HOT 3
- How to get registered depth camera data in gazebo?
- ROS Melodic on RockPro64 - no devices connnected
- Command invalid when launching on ros kinetic
- Please Help! nodelet: /usr/include/boost/smart_ptr/shared_ptr.hpp:728: typename boost::detail::sp_dereference::type boost::shared_ptr::operator*() const [with T = xn::NodeInfo; typename boost::detail::sp_dereference::type = xn::NodeInfo&]: Assertion `px != 0' failed. HOT 1
- OpenNI compatibility with CSI-2 connection?
- Noetic release request HOT 9
- ROS Melodic + Ubuntu Mate 18.04 + Kinect V1 + Raspberry PI 4B
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openni_camera.