xioTechnologies / NGIMU-MATLAB-Real-Time-Example

11 stars 11 forks source link

Input is not a valid rigid transformation #8

Closed WalkingFritsie closed 2 years ago

WalkingFritsie commented 2 years ago

Hi,

I seem te be getting an error about the guaternionplot. Whenever i try to run the GUI it brings up the following error:

"Input is not a Valid Rigid Transformation"

When this message is displayed, the graph's wont show any data. however, when i turn the Quaterplot into a comment (Gui.m, line 221), the Graphs will read the Data without problems.

How can i fix this problem, so the Quaternionplot shows up in the gui?

WalkingFritsie commented 2 years ago

oke, so for everyone with the same problem,

I Reverted Line 68 in QuaternionPlot.m as follows:

% Update teapot rotatedTeaPot = pctransform(obj.teaPot, affine3d(rotm2tform(R))); % T = eye(4); % T(1:3, 1:3) = R; % rotatedTeaPot = pctransform(obj.teaPot, affine3d(T));

that should fix the problem of the quaternion not working in the GUI