Page 1 of 1

angles in camera sdk

Posted: Thu Dec 02, 2010 10:30 am
by maister
Hello friends!
One more time I need your help for resolve my doubts.
I use vecprocessor->GetOrientation(yaw,pitch,roll); to calculate the values of the angles, but pitch and yaw values I think that they are multiplied by 2 as. For example when I have the object with yaw = 45 degrees in reality, the function returns 90, and if I have the object with yaw = 89 degrees in reality, the function returns 178-179. The problem is that the function returns -180,-179,-170... when I have values equals or bigger than 90 and my software go crazy.

any idea?
thanks a lot!

Re: angles in camera sdk

Posted: Fri Dec 03, 2010 4:11 pm
by beckdo
This could be resulting from a scaling factor in the vector processor. Something you should do is create a cVectorProcessingSettings object. It will be filled with default settings automatically. Then update the settings you want to adjust (like scale rotation), then call your vecprocessor->SetSettings(vecProcessingSettings); where vecProcessingSettings is a cVectorProcessingSettings object.

ie.

Code: Select all

cVectorProcessingSettings vecProcessingSettings;
vecProcessingSettings.ScaleRotationYaw = 1.0;
vecProcessingSettings.ScaleRotationPitch = 1.0;
vecProcessingSettings.ScaleRotationRoll = 1.0;
vecprocessor->SetSettings(vecProcessingSettings);

Re: angles in camera sdk

Posted: Mon Dec 13, 2010 11:01 am
by maister
For x, y, z there is also some scale?
Is the value returned is millimeters?

thanks!

Re: angles in camera sdk

Posted: Mon Dec 13, 2010 6:18 pm
by beckdo
I believe it's in millimeters, yes. The only other possibility is that it returns meters. I believe it's millimeters.