Go to the documentation of this file.
28 #include <condition_variable>
33 #include <opencv2/opencv.hpp>
38 #include <ArmarXCore/interface/observers/ObserverInterface.h>
40 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
44 #include <VisionX/interface/components/RGBDImageProvider.h>
48 #include <k4a/k4a.hpp>
72 virtual public visionx::StereoCalibrationCaptureProviderInterface,
110 bool capture(
void** pp_image_buffers)
override;
118 case K4A_COLOR_RESOLUTION_720P:
119 return { 1280, 720 };
120 case K4A_COLOR_RESOLUTION_2160P:
121 return { 3840, 2160 };
122 case K4A_COLOR_RESOLUTION_1440P:
123 return { 2560, 1440 };
124 case K4A_COLOR_RESOLUTION_1080P:
125 return { 1920, 1080 };
126 case K4A_COLOR_RESOLUTION_3072P:
127 return { 4096, 3072 };
128 case K4A_COLOR_RESOLUTION_1536P:
129 return { 2048, 1536 };
132 throw std::logic_error(
"Invalid color dimensions value!");
142 case K4A_DEPTH_MODE_NFOV_2X2BINNED:
144 case K4A_DEPTH_MODE_NFOV_UNBINNED:
146 case K4A_DEPTH_MODE_WFOV_2X2BINNED:
148 case K4A_DEPTH_MODE_WFOV_UNBINNED:
149 return { 1024, 1024 };
150 case K4A_DEPTH_MODE_PASSIVE_IR:
151 return { 1024, 1024 };
154 throw std::logic_error(
"Invalid depth dimensions value!");
161 s << version.major <<
"." << version.minor <<
"." << version.iteration;
169 k4a_device_configuration_t config;
170 k4a::calibration k4aCalibration;
171 k4a::transformation transformation;
172 std::pair<int, int> depthDim;
std::string getReferenceFrame(const Ice::Current ¤t) override
void onStopCapture() override
This is called when the image provider capturing has been stopped.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
AzureKinectIRImageProviderPropertyDefinitions(std::string prefix)
virtual std::string getDefaultName() const override
static std::pair< int, int > GetColorDimensions(const k4a_color_resolution_t resolution)
bool getImagesAreUndistorted(const Ice::Current ¤t) override
std::unique_ptr< CByteImage > CByteImageUPtr
StereoCalibration getStereoCalibration(const Ice::Current ¤t) override
void onExitCapturingImageProvider() override
This is called when the Component::onExitComponent() setup is called.
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
The CapturingImageProvider provides a callback function to trigger the capturing of images with diffe...
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
static std::string VersionToString(const k4a_version_t &version)
void onInitCapturingImageProvider() override
This is called when the Component::onInitComponent() is called.
void onStartCapture(float frames_per_second) override
This is called when the image provider capturing has been started.
static std::pair< int, int > GetDepthDimensions(const k4a_depth_mode_t depth_mode)
double s(double t, double s0, double v0, double a0, double j)
Brief description of class AzureKinectIRImageProvider.