33#include <Image/ByteImage.h>
36#include <Ice/Current.h>
37#include <IceUtil/Time.h>
44#include <VisionX/interface/core/ImageProviderInterface.h>
60 "Name of the ImageProviderComponent");
62 "ImageProviderChannel", 0,
"The image channel to use");
64 "DebugDrawerTopicName",
66 "Name of the debug drawer topic that should be used");
81 return "SimpleEpisodicMemoryImageConnector";
98 void checkForNewImages();
101 std::string m_image_provider_id;
102 unsigned int m_image_provider_channel;
103 visionx::ImageProviderInterface::ProxyType m_image_provider;
105 armarx::MetaInfoSizeBase::PointerType m_image_meta_info;
106 IceUtil::Time m_timestamp_last_image;
109 CByteImage** m_input_image_buf;
110 CByteImage* m_input_image;
111 std::mutex m_input_image_mutex;
113 unsigned int num_of_received_images;
116 const unsigned int m_periodic_task_interval = 100;
IceUtil::Handle< PeriodicTask< T > > pointer_type
Shared pointer type for convenience.
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)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
ImageProcessorPropertyDefinitions(std::string prefix)
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
SimpleEpisodicMemoryImageConnectorPropertyDefinitions(std::string prefix)
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onExitImageProcessor() override
Exit the ImapeProcessor component.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void process() override
Process the vision component.
void onInitImageProcessor() override
Setup the vision component.
void onDisconnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component looses network ...
std::string getDefaultName() const override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.