31#include <pcl/impl/point_types.hpp>
32#include <pcl/point_cloud.h>
34#include <opencv2/opencv.hpp>
36#include <Ice/Config.h>
37#include <Ice/Current.h>
46#include <VisionX/interface/components/Calibration.h>
47#include <VisionX/interface/components/NerianVisionPointCloudProviderInterface.h>
48#include <VisionX/interface/core/DataTypes.h>
50#include <visiontransfer/deviceinfo.h>
65 visionx::ImageDimension(720, 512),
66 "Needs to be set according to the selected camera preset. This property will "
68 "used as a fallback if auto-detection fails.")
69 .map(
"720x512", visionx::ImageDimension(720, 512))
70 .map(
"1024x768", visionx::ImageDimension(1024, 768))
71 .map(
"1440x1054", visionx::ImageDimension(1440, 1056));
86 virtual public armarx::NerianVisionPointCloudProviderInterface,
99 return "NerianVisionPointCloudProvider";
109 void changeFrameRate(Ice::Float framesPerSecond,
const Ice::Current&
c)
override;
138 MetaPointCloudFormatPtr
141 MetaPointCloudFormatPtr info =
new MetaPointCloudFormat();
142 info->type = PointContentType::eColoredPoints;
144 ARMARX_INFO <<
"default pointcloud format: " << dimensions.width <<
", "
145 << dimensions.height;
147 info->capacity =
static_cast<::Ice::Int
>(dimensions.width * dimensions.height *
148 sizeof(ColoredPoint3D));
149 info->size = info->capacity;
161 using visiontransfer::DeviceInfo;
164 case DeviceInfo::DeviceModel::SCENESCAN:
166 case DeviceInfo::DeviceModel::SCENESCAN_PRO:
167 return "SceneScan Pro";
168 case DeviceInfo::DeviceModel::SCARLET:
170 case DeviceInfo::DeviceModel::RUBY:
173 return "(INVALID_ENUM_VALUE)";
178 visiontransfer::DeviceInfo device;
180 pcl::PointCloud<CloudPointType>::Ptr pointcloud;
181 MetaPointCloudFormatPtr cloudFormat;
182 visionx::ImageDimension dimensions;
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
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)
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
ImageProvider abstract class defines a component which provide images via ice or shared memory.
NerianVisionPointCloudProviderPropertyDefinitions(std::string prefix)
Brief description of class NerianVisionPointCloudProvider.
void onInitComponent() override
Pure virtual hook for the subclass.
void stopCapture(const Ice::Current &c) override
bool isCaptureEnabled(const Ice::Current &c) override
void onDisconnectComponent() override
Hook for subclass.
void changeFrameRate(Ice::Float framesPerSecond, const Ice::Current &c) override
void onConnectPointCloudProvider() override
This is called when the Component::onConnectComponent() setup is called.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectImageProvider() override
This is called when the Component::onConnectComponent() setup is called.
void onInitPointCloudProvider() override
This is called when the Component::onInitComponent() is called.
bool hasSharedMemorySupport(const Ice::Current &) override
std::string getReferenceFrame(const Ice::Current &c) override
void runImageAndPointCloudPublishing()
void startCaptureForNumFrames(int numFrames, const Ice::Current &c) override
MetaPointCloudFormatPtr getDefaultPointCloudFormat() override
default point cloud format used to initialize shared memory
void startCapture(const Ice::Current &c) override
void onConnectComponent() override
Pure virtual hook for the subclass.
static std::string getNameForDeviceModel(const visiontransfer::DeviceInfo::DeviceModel &model)
visionx::StereoCalibration getStereoCalibration(const Ice::Current &c) override
bool getImagesAreUndistorted(const ::Ice::Current &c) override
void onInitImageProvider() override
This is called when the Component::onInitComponent() is called.
void onExitComponent() override
Hook for subclass.
void onExitImageProvider() override
This is called when the Component::onExitComponent() setup is called.
pcl::PointXYZRGBA CloudPointType
void onExitPointCloudProvider() override
This is called when the Component::onExitComponent() setup is called.
void onDisconnectImageProvider() override
std::string getDefaultName() const override
PointCloudProvider abstract class defines a component which provide point clouds via ice or shared me...
#define ARMARX_INFO
The normal logging level.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.