Go to the documentation of this file.
33 #include <VisionX/interface/components/RGBDImageProvider.h>
36 #include <pcl/common/transforms.h>
37 #include <pcl/point_cloud.h>
38 #include <pcl/point_types.h>
40 #include <Eigen/Geometry>
42 #include <libfreenect.hpp>
63 defineOptionalProperty<std::string>(
"ReferenceFrameName",
"DepthCamera",
"Optional reference frame name.");
75 virtual public RGBDPointCloudProviderInterface,
86 return "KinectV1PointCloudProvider";
154 return getProperty<std::string>(
"ReferenceFrameName");
158 typedef pcl::PointXYZRGBA
PointT;
160 Freenect::Freenect freenect_;
163 CByteImage** rgbImages_;
164 int width_, height_, size_;
165 StereoCalibration calibration;
166 float cx_, cy_, fx_, fy_;
void onExitComponent() override
void onExitCapturingPointCloudProvider() override
void onInitComponent() override
void onDisconnectComponent() override
Hook for subclass.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onInitCapturingPointCloudProvider() override
std::string getDefaultName() const override
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
void onStopCapture() override
float frameRate
Required frame rate.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onExitImageProvider() override
The CapturingPointCloudProvider provides a callback function to trigger the capturing of point clouds...
ImageProvider abstract class defines a component which provide images via ice or shared memory.
void onStartCapture(float frameRate) override
std::string getReferenceFrame(const Ice::Current &c=Ice::emptyCurrent) override
KinectV1PointCloudProviderPropertyDefinitions(std::string prefix)
StereoCalibration getStereoCalibration(const Ice::Current &c=Ice::emptyCurrent) override
void onInitImageProvider() override
void onConnectComponent() override
bool doCapture() override
bool getImagesAreUndistorted(const ::Ice::Current &c=Ice::emptyCurrent) override