Items with no label
3335 Discussions

Calibration Data from R200

idata
Employee
1,350 Views

Hi,

I recently started working with Intel RealSense R200 camera. I am having issues in accessing data from R200 using the member functions QueryStreamProjectionParameters and QueryStreamProjectionParametersEx. Whenever I use these two functions to get the calibration data they either return "PXCM_STATUS_FEATURE_UNSUPPORTED" and "PXCM_STATUS_DATA_UNAVAILABLE". Any help would be much appreciated.

Part of the code I am using to get Calibration Data:

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH, 0, 0, 0);

 

SetStatus("Init Started");

 

if (sm.Init() >= pxcmStatus.PXCM_STATUS_NO_ERROR)

 

{ /* Reset all properties */

 

sm.captureManager.device.ResetProperties(PXCMCapture.StreamType.STREAM_TYPE_ANY);

 

 

PXCMProjection projection = sm.captureManager.device.CreateProjection();

 

PXCMCalibration calib = projection.QueryInstance<<span style="color: # 2b91af;">PXCMCalibration>();

 

PXCMCalibration.StreamCalibration calibData;

 

PXCMCalibration.StreamTransform calibTrans;

 

 

SetStatus(calib.QueryStreamProjectionParameters(PXCMCapture.StreamType.STREAM_TYPE_COLOR, out calibData, out calibTrans).ToString());
1 Solution
Pedro_M_Intel
Employee
228 Views

Hello TulasiSunil,

Thanks for reaching out!

Could you please let us know which version of the SDK you are using?

In case you are using version R3 of the SDK, please note that the R200 is not supported on this release, therefore this behavior could be explained by that.

I've checked pxcmstatus.cs (https://github.com/SharpSenses/libpxcclr.cs/blob/master/src/pxcmstatus.cs libpxcclr.cs/pxcmstatus.cs at master · SharpSenses/libpxcclr.cs · GitHub) and it states that pxcmStatus value, if it is different than 0 it indicates an error, in this case PXCM_STATUS_FEATURE_UNSUPPORTED is -1 and PXCM_STATUS_DATA_UNAVAILABLE is -501. So, something might be wrong on your application.

PXCM_STATUS_DATA_UNAVAILABLE in pxcmblobdata.cs (https://github.com/SharpSenses/libpxcclr.cs/blob/master/src/pxcmblobdata.cs libpxcclr.cs/pxcmblobdata.cs at master · SharpSenses/libpxcclr.cs · GitHub) it is stated that the segmentation image is not available. You might want to take a look this files.

Let us know.

-Peter.

View solution in original post

0 Kudos
3 Replies
Pedro_M_Intel
Employee
229 Views

Hello TulasiSunil,

Thanks for reaching out!

Could you please let us know which version of the SDK you are using?

In case you are using version R3 of the SDK, please note that the R200 is not supported on this release, therefore this behavior could be explained by that.

I've checked pxcmstatus.cs (https://github.com/SharpSenses/libpxcclr.cs/blob/master/src/pxcmstatus.cs libpxcclr.cs/pxcmstatus.cs at master · SharpSenses/libpxcclr.cs · GitHub) and it states that pxcmStatus value, if it is different than 0 it indicates an error, in this case PXCM_STATUS_FEATURE_UNSUPPORTED is -1 and PXCM_STATUS_DATA_UNAVAILABLE is -501. So, something might be wrong on your application.

PXCM_STATUS_DATA_UNAVAILABLE in pxcmblobdata.cs (https://github.com/SharpSenses/libpxcclr.cs/blob/master/src/pxcmblobdata.cs libpxcclr.cs/pxcmblobdata.cs at master · SharpSenses/libpxcclr.cs · GitHub) it is stated that the segmentation image is not available. You might want to take a look this files.

Let us know.

-Peter.

0 Kudos
idata
Employee
228 Views

Hello Peter,

I really appreciate your reply. It was very helpful. I was able to fix the Issue and get all the calibration data by using R2 SDK.

0 Kudos
idata
Employee
228 Views

Hi TulasiSunil,

 

 

I'm glad to be of help!

 

 

If you ever have any other questions, please don't hesitate to come back to the community, we'll try to help you in any way we can.

 

 

-Peter.
0 Kudos
Reply