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>
45 #include <VisionX/interface/components/RGBDImageProvider.h>
48 #include <k4a/k4a.hpp>
70 virtual public visionx::StereoCalibrationCaptureProviderInterface,
108 bool capture(
void** pp_image_buffers)
override;
112 static inline std::pair<int, int>
117 case K4A_COLOR_RESOLUTION_720P:
119 case K4A_COLOR_RESOLUTION_2160P:
121 case K4A_COLOR_RESOLUTION_1440P:
123 case K4A_COLOR_RESOLUTION_1080P:
125 case K4A_COLOR_RESOLUTION_3072P:
127 case K4A_COLOR_RESOLUTION_1536P:
131 throw std::logic_error(
"Invalid color dimensions value!");
137 static inline std::pair<int, int>
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:
150 case K4A_DEPTH_MODE_PASSIVE_IR:
154 throw std::logic_error(
"Invalid depth dimensions value!");
162 s << version.major <<
"." << version.minor <<
"." << version.iteration;
170 k4a_device_configuration_t config;
171 k4a::calibration k4aCalibration;
172 k4a::transformation transformation;
173 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.