ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found the solution to the problem:

in the prosilica library (prosilica.cpp) in function Camera::setWhiteBalance the test, whether manual whitebalance is available

PvAttrIsAvailable(handle_, "WhitebalValueBlue")

returns 0 (ePvErrSuccess) if manual whitebalance for blue is available. since the whitebal check is

if (isauto == Manual && PvAttrIsAvailable(handle_, "WhitebalValueBlue"))

it will FAIL if the PvAttrIsAvailable returns ePvErrSuccess. Negate PvAttrIsAvailable return value :

if (isauto == Manual && !PvAttrIsAvailable(handle_, "WhitebalValueBlue"))

will solve the problem.

I found the solution to the problem:

in the prosilica library (prosilica.cpp) in function Camera::setWhiteBalance Camera::setWhiteBalance the test, whether manual whitebalance is available

PvAttrIsAvailable(handle_, "WhitebalValueBlue")

returns 0 (ePvErrSuccess) if manual whitebalance for blue is available. since the whitebal check is

if (isauto == Manual && PvAttrIsAvailable(handle_, "WhitebalValueBlue"))

it will FAIL if the PvAttrIsAvailable PvAttrIsAvailable returns ePvErrSuccess. Negate PvAttrIsAvailable return value : ePvErrSuccess.

if (isauto == Manual && !PvAttrIsAvailable(handle_, ePvErrSuccess == PvAttrIsAvailable(handle_, "WhitebalValueBlue"))

will solve the problem.