angles in camera sdk

Post Reply
maister
Posts: 20
Joined: Fri Dec 18, 2009 10:12 am

angles in camera sdk

Post 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!
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: angles in camera sdk

Post 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);
maister
Posts: 20
Joined: Fri Dec 18, 2009 10:12 am

Re: angles in camera sdk

Post by maister »

For x, y, z there is also some scale?
Is the value returned is millimeters?

thanks!
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: angles in camera sdk

Post by beckdo »

I believe it's in millimeters, yes. The only other possibility is that it returns meters. I believe it's millimeters.
Post Reply