Go to the documentation of this file.
49 defineOptionalProperty<ImageDimension>(
"VideoMode", ImageDimension(320, 240),
"Image resolution")
50 .setCaseInsensitive(
true)
51 .map(
"320x240", ImageDimension(320, 240))
52 .map(
"640x480", ImageDimension(640, 480));
54 defineOptionalProperty<ImageType>(
"ImageType", eColoredPointsScan,
"Image type: RGB, Points, Points with RGB")
55 .setCaseInsensitive(
true)
57 .map(
"ColoredPointsScan", eColoredPointsScan);
59 defineOptionalProperty<float>(
"FrameRate", 30.0f,
"Frames per second")
60 .setMatchRegex(
"\\d+(.\\d*)?")
66 defineOptionalProperty<std::string>(
"DeviceURI",
"ANY",
"The URI from OpenNI API").setCaseInsensitive(
true);
210 virtual bool capture(
void** ppImageBuffers);
225 return "OpenNIImageProvider";
288 bool StartDevice(
const char* pDeviceURI,
const int Width,
const int Height,
const int Fps);
openni::VideoFrameRef frameOpenNI
virtual void onStartCapture(float frameRate)
virtual void onInitCapturingImageProvider()
float frameRate
Capturing frame rate.
virtual void onStopCapture()
OpenNIPropertyDefinitions(std::string prefix)
openni::VideoStream colorStreamOpenNI
bool InitializeNormalizedDepthCells()
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
bool DispatchDepthFrame()
bool CreateDataStructures()
bool CaptureColoredPoint()
OpenNI image provider captures 3D-points and/or color(s) images from a single device and supports the...
int EnsureFPS(const int FPS)
static bool isBackEndInitialized
visionx::ImageDimension videoDimension
Video dimension data.
bool DestroyDataStructure()
virtual std::string getDefaultName() const
visionx::ColoredPoint3D * coloredPoint3DBuffer
Captured images.
The CapturingImageProvider provides a callback function to trigger the capturing of images with diffe...
bool StartDevice(const char *pDeviceURI, const int Width, const int Height, const int Fps)
virtual void onExitCapturingImageProvider()
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Default component property definition container.
openni::VideoStream depthStreamOpenNI
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
bool DispatchColorFrame()
visionx::ImageType imageType
Capturing image type.
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions()
openni::Device deviceOpenNI
NormalizedDepthCell * normalizedDepthCells
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
std::string uri
Camera URI.