Go to the documentation of this file.
29 #include <VisionX/interface/core/DataTypes.h>
30 #include <VisionX/interface/core/PointCloudProcessorInterface.h>
43 public virtual ImageAndPointCloudProviderInterface
100 virtual public PointCloudAndImageProcessorInterface
208 template<
typename Po
intT>
210 int numberImages, ImageDimension imageDimension, ImageType imageType)
214 ARMARX_VERBOSE <<
"Enabling ResultImageProvider with " << numberImages <<
" result images.";
216 myProvider->setName(resultProviderName.empty() ?
getName() +
"Result" : resultProviderName);
219 myProvider->setNumberResultImages(numberImages);
220 myProvider->setResultImageFormat(imageDimension, imageType);
225 if (resultProviderName ==
"")
227 resultProviderName =
getName() +
"Result";
234 ARMARX_WARNING <<
"result point cloud provider already exists: " << resultProviderName;
240 PointContentType pointContentType = tools::getPointContentType<PointT>();
247 myProvider->setName(resultProviderName);
248 myProvider->setShmCapacity(capacity);
249 myProvider->setPointContentType(pointContentType);
265 ARMARX_IMPORTANT <<
"before waitForObjectState(armarx::eManagedIceObjectStarted);";
266 myProvider->getObjectScheduler()->waitForObjectState(armarx::eManagedIceObjectStarted);
267 ARMARX_IMPORTANT <<
"after waitForObjectState(armarx::eManagedIceObjectStarted);";
void onExitPointCloudProcessor() override
Exit the ImapeProcessor component.
void onConnectComponent() override
virtual void onConnectPointCloudAndImageProcessor()=0
Implement this method in your PointCloudAndImageProcessor in order execute parts when the component i...
void onConnectComponent() override
void onExitImageProcessor() override
Exit the ImapeProcessor component.
void onInitComponent() override
virtual std::string getDefaultName() const override
Retrieve default name of component.
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
void onExitComponent() override
void onDisconnectPointCloudProcessor() override
Implement this method in the PointCloudProcessor in order execute parts when the component looses net...
ArmarXManagerPtr getArmarXManager() const
Returns the ArmarX manager used to add and remove components.
virtual void onDisconnectComponent() override
void onExitComponent() override
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
void onExitComponent() override
virtual void onExitComponent() override
void onDisconnectComponent() override
Hook for subclass.
void onExitComponent() override
void onDisconnectComponent() override
Hook for subclass.
virtual void onExitPointCloudAndImageProcessor()=0
Exit the ImapeProcessor component.
void onDisconnectComponent()
Hook for subclass.
void onConnectComponent() override
std::map< std::string, PointCloudProviderInfo > pointCloudProviderInfoMap
The PointCloudProcessor class provides an interface for access to PointCloudProviders via Ice and sha...
void onInitComponent() override
void onConnectComponent()
Pure virtual hook for the subclass.
void onExitComponent()
Hook for subclass.
bool hasSharedMemorySupport(const Ice::Current &c)
void onConnectPointCloudProcessor() override
Implement this method in the PointCloudProcessor in order execute parts when the component is fully i...
void onInitComponent() override
The ResultPointCloudProvider is used by the PointCloudProcessor to stream result PointClouds to any o...
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
void process() override
Process the vision component.
virtual void onConnectComponent() override
void onConnectComponent() override
void onInitComponent() override
virtual void onInitComponent() override
The ResultImageProvider is used by the ImageProcessor to stream result images to any other processor ...
std::string getName() const
Retrieve name of object.
virtual void onInitPointCloudAndImageProcessor()=0
Setup the vision component.
void onInitComponent()
Pure virtual hook for the subclass.
void onInitImageProcessor() override
Setup the vision component.
virtual void onDisconnectPointCloudAndImageProcessor()
Implement this method in the PointCloudAndImageProcessor in order to execute parts when the component...
void onDisconnectComponent() override
IceInternal::Handle< ResultImageProvider > resultImageProvider
void onDisconnectComponent() override
void enableResultImagesAndPointClouds(std::string resultProviderName, int numberImages, ImageDimension imageDimension, ImageType imageType)
std::shared_mutex resultProviderMutex
std::map< std::string, IceInternal::Handle< ResultPointCloudProvider > > resultPointCloudProviders
The PointCloudAndImageProcessor class provides an interface for access to PointCloudProviders and Ima...
std::string getDefaultName() const
Retrieve default name of component.
void onInitPointCloudProcessor() override
Setup the vision component.