38 #include <opencv2/imgproc/imgproc.hpp> 47 _imageRate(imageRate),
48 _localTransform(localTransform),
49 _targetImageSize(0,0),
50 _frameRateTimer(new
UTimer()),
69 bool warnFrameRateTooHigh =
false;
70 float actualFrameRate = 0;
78 else if(sleepTime < 0)
80 warnFrameRateTooHigh =
true;
97 double captureTime = timer.
ticks();
98 if(warnFrameRateTooHigh)
100 UWARN(
"Camera: Cannot reach target image rate %f Hz, current rate is %f Hz and capture time = %f s.",
105 UDEBUG(
"Time capturing image = %fs", captureTime);
109 info->
id = data.
id();
Camera(float imageRate=0, const Transform &localTransform=Transform::getIdentity())
Some conversion functions.
virtual SensorData captureImage(CameraInfo *info=0)=0
SensorData takeImage(CameraInfo *info=0)
Wrappers of STL for convenient functions.
void uSleep(unsigned int ms)