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!
angles in camera sdk
Re: angles in camera sdk
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.
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
For x, y, z there is also some scale?
Is the value returned is millimeters?
thanks!
Is the value returned is millimeters?
thanks!
Re: angles in camera sdk
I believe it's in millimeters, yes. The only other possibility is that it returns meters. I believe it's millimeters.