28#include <Eigen/Geometry>
30#include <pcl/common/transforms.h>
31#include <pcl/point_cloud.h>
32#include <pcl/point_types.h>
39#include <VisionX/interface/components/RGBDImageProvider.h>
42#include <libfreenect.hpp>
62 "ReferenceFrameName",
"DepthCamera",
"Optional reference frame name.");
74 virtual public RGBDPointCloudProviderInterface,
86 return "KinectV1PointCloudProvider";
163 typedef pcl::PointXYZRGBA
PointT;
165 Freenect::Freenect freenect_;
168 CByteImage** rgbImages_;
169 int width_, height_, size_;
170 StereoCalibration calibration;
171 float cx_, cy_, fx_, fy_;
Property< PropertyType > getProperty(const std::string &name)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
CapturingPointCloudProviderPropertyDefinitions(std::string prefix)
The CapturingPointCloudProvider provides a callback function to trigger the capturing of point clouds...
float frameRate
Required frame rate.
ImageProvider abstract class defines a component which provide images via ice or shared memory.
KinectV1PointCloudProviderPropertyDefinitions(std::string prefix)
std::string getReferenceFrame(const Ice::Current &c=Ice::emptyCurrent) override
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
void onInitComponent() override
Pure virtual hook for the subclass.
bool doCapture() override
void onExitCapturingPointCloudProvider() override
void onDisconnectComponent() override
Hook for subclass.
void onStartCapture(float frameRate) override
void onInitCapturingPointCloudProvider() override
void onConnectComponent() override
Pure virtual hook for the subclass.
StereoCalibration getStereoCalibration(const Ice::Current &c=Ice::emptyCurrent) override
void onStopCapture() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitImageProvider() override
void onExitComponent() override
Hook for subclass.
void onExitImageProvider() override
std::string getDefaultName() const override
bool getImagesAreUndistorted(const ::Ice::Current &c=Ice::emptyCurrent) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.