Hi, Gabriel,
Here is some experiments that I did.
I tried under these 3 configurations in the OpenNI configuration XML
file, and the NiSimpleViewer sample worked fine.
a) Depth: VGA @ 30 FPS and RGB: VGA @ 30 FPS
b) Depth: QVGA @ 30 FPS and RGB: QVGA @ 30 FPS
c) Depth: QVGA @ 60 FPS and RGB: QVGA @ 60 FPS
How it looked like in the xml.
<Node type="Depth" name="Depth1">
<Configuration>
<Mirror on="true"/>
<MapOutputMode xRes="640" yRes="480" FPS="60"/>
</Configuration>
</Node>
<Node type="Image" name="Image1" stopOnError="false">
<Configuration>
<Mirror on="true"/>
<MapOutputMode xRes="640" yRes="480" FPS="60"/>
</Configuration>
</Node>
However, under these configurations, the NiSimpleViewer sample
complained about different errors.
a) Depth: VGA @ 60 FPS and RGB: VGA @ 60 FPS
b) Depth: VGA @ 60 FPS and RGB: VGA @ 30 FPS
c) Depth: VGA @ 30 FPS and RGB: VGA @ 60 FPS
d) Depth: VGA @ 30 FPS and RGB: QVGA @ 30 FPS
e) Depth: QVGA @ 30 FPS and RGB: VGA @ 30 FPS
a), b) and c) resulted in an error: “Open failed: The value is
invalid!”
d) and e) resulted in an error: “The device depth and image resolution
must be equal!“
In summary, to answer your questions based on the experiement results:
1) Make sure you have the configuration correct for both depth and
RGB streams (in the same resolution and appropriate FPS). The error
should go away.
2) Depth and RGB can only support VGA @ 30FPS at maximum.
Hope this helps.
Bernie