Skip to content

PCL can't read some newer .ONI files #461

@sdmiller

Description

@sdmiller

I noticed this a few months ago, but was recently reminded by a colleague:

In openni_device.cpp, we seem to be expecting that any Depth Generator have embedded in it a ShadowValue and NoSampleValue. It seems that newer versions of openni no longer require this to be saved -- so plenty of ONI files return an error when read by PCL.

There's a simple quick fix for this: stop throwing an error, and instead default to something reasonable for these cases (e.g. 0 represents no sample -- is there a similar default for shadow?) Should we do this, or is there a deeper reason for this error?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions