You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* minor changes to adding camerainfo header in export_to_ros method
* will handle if binning is set properly and wwarn if camera is not calibrated at full resolution
int actualBinningX = (pCam_ ->SensorWidth())/(pCam_ ->Width());
321
+
int actualBinningY = (pCam_ ->SensorHeight())/(pCam_ ->Height());
322
+
if (binningDesired == actualBinningX) returntrue;
323
+
elsereturnfalse;
324
+
}
325
+
326
+
voidacquisition::Camera::calibrationParamsTest(int calibrationWidth, int calibrationHeight) {
327
+
if ( (pCam_ ->SensorWidth()) != calibrationWidth )
328
+
ROS_WARN_STREAM(" Looks like your calibration is not done at full Sensor Resolution for cam_id = "<<get_id()<<" , Sensor_Width = "<<(pCam_ ->SensorWidth()) <<" given cameraInfo params:width = "<<calibrationWidth);
329
+
if ( (pCam_ ->SensorHeight()) != calibrationHeight )
330
+
ROS_WARN_STREAM(" Looks like your calibration is not done at full Sensor Resolution for cam_id = "<<get_id()<<" , Sensor_Height= "<<(pCam_ ->SensorHeight()) <<" given cameraInfo params:height = "<<calibrationHeight);
// Gets called only once, when first image is being triggered
938
+
for (unsignedint i = 0; i < numCameras_; i++) {
939
+
//verify if binning is set successfully
940
+
ROS_ASSERT_MSG(cams[i].verifyBinning(binning_), " Failed to set Binning= %d, could be either due to Invalid binning value, try changing binning value or due to spinnaker api bug - failing to set lower binning than previously set value - solution: unplug usb camera and re-plug it back and run to node with desired valid binning", binning_);
941
+
// warn if full sensor resolution is not same as calibration resolution
0 commit comments