29#include "Helpers/helpers.h"
40#include <SimoxUtility/algorithm/string/string_tools.h>
60 uids = simox::alg::split(uidStr,
"\t ,");
89 std::string leftUID, rightUID;
100 rightUID =
uids.at(1);
149 throw visionx::exceptions::user ::StartingCaptureFailedException(
150 "Opening cameras failed!");
184 bool succeeded =
false;
188 case visionx::eBayerPattern:
194 case visionx::eGrayScale:
218 int imageSize = imageFormat.dimension.width * imageFormat.dimension.height *
219 imageFormat.bytesPerPixel;
220 memcpy(ppImageBuffers[0],
ppImages[0]->pixels, imageSize);
221 memcpy(ppImageBuffers[1],
ppImages[1]->pixels, imageSize);
230 return "IEEE1394ImageProvider";
#define ARMARX_REGISTER_COMPONENT_EXECUTABLE(ComponentT, applicationName)
Property< PropertyType > getProperty(const std::string &name)
float frameRate
Required frame rate.
void setImageSyncMode(ImageSyncMode imageSyncMode)
Sets the image synchronization mode.
armarx::SharedMemoryScopedWriteLockPtr getScopedWriteLock()
Retrieve scoped lock for writing to the memory.
IEEE1394 image provider captures images from one or more cameras and supports the following image tra...
bool isFormat7Mode
Indicate whether using format 7 modes or not.
CByteImage ** ppImages
Captured images.
visionx::BayerPatternType bayerPatternType
Specific bayer pattern type, if ColorMode is BayerPattern.
void onStartCapture(float frameRate) override
CLinux1394CaptureThreaded2 * ieee1394Capturer
IEEE1394 Capture.
visionx::ImageDimension videoDimension
Video dimension data.
std::vector< std::string > uids
Camera UID list.
void onStopCapture() override
void onExitCapturingImageProvider() override
static std::string GetDefaultName()
ColorFormat colorFormat
Camera color mode and resulting image time.
void onInitCapturingImageProvider() override
std::string getDefaultName() const override
Retrieve default name of component.
ImageFormatInfo getImageFormat(const Ice::Current &c=Ice::emptyCurrent) override
Returns the entire image format info struct via Ice.
void setImageFormat(ImageDimension imageDimension, ImageType imageType, BayerPatternType bayerPatternType=visionx::eBayerPatternRg)
Sets the image basic format data.
int getNumberImages(const Ice::Current &c=Ice::emptyCurrent) override
Retrieve number of images handled by this provider.
void setNumberImages(int numberImages)
Sets the number of images on each capture.
#define ARMARX_INFO
The normal logging level.
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< SharedMemoryScopedWriteLock > SharedMemoryScopedWriteLockPtr
const LogSender::manipulator flush