36 def->optional(providerName,
"ImageProviderName");
37 OpenPoseEstimationComponent::setupPropertyDefinitions(def);
47 readErrorCounter2d = 0;
56 rgbImageFormat = imageProviderInfo.imageFormat;
58 OpenPoseEstimationComponent::onConnect();
60 numImages =
static_cast<unsigned int>(imageProviderInfo.numberImages);
67 imageBuffer =
new CByteImage*[1];
72 1, imageProviderInfo.imageFormat.dimension, imageProviderInfo.imageFormat.type);
82 OpenPoseEstimationComponent::onDisconnect();
99 <<
" (#timeout " << timeoutCounter2d <<
", #read error "
100 << readErrorCounter2d <<
", #success " << sucessCounter2d <<
")";
104 std::lock_guard lock_images(imageBufferMutex);
105 if (
static_cast<unsigned int>(
106 getImages(providerName, imageBuffer, imageMetaInfo)) != numImages)
108 ++readErrorCounter2d;
110 <<
" (#timeout " << timeoutCounter2d <<
", #read error "
111 << readErrorCounter2d <<
", #success " << sucessCounter2d <<
")";
118 std::lock_guard lock_rgb(rgbImageBufferMutex);
119 ::ImageProcessor::CopyImage(imageBuffer[0], rgbImageBuffer);
121 timestamp_of_update = imageMetaInfo->timeProvided;
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
Default component property definition container.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string getName() const
Retrieve name of object.
void enableResultImages(int numberImages, ImageDimension imageDimension, ImageType imageType, const std::string &name="")
Enables visualization.
void usingImageProvider(std::string name)
Registers a delayed topic subscription and a delayed provider proxy retrieval which all will be avail...
bool waitForImages(int milliseconds=1000)
Wait for new images.
ImageProviderInfo getImageProvider(std::string name, ImageType destinationImageType=eRgb, bool waitForProxy=false)
Select an ImageProvider.
int getImages(CByteImage **ppImages)
Poll images from provider.
virtual void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
virtual void onExitImageProcessor() override
Exit the ImapeProcessor component.
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
virtual void process() override
Process the vision component.
virtual void onInitImageProcessor() override
Setup the vision component.
virtual void onDisconnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component looses network ...
#define ARMARX_INFO
The normal logging level.
#define ARMARX_FATAL
The logging level for unexpected behaviour, that will lead to a seriously malfunctioning program and ...
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.