Hi @BJCaasenbrood, thank you for your excellent work!
There are several errors when I tested the provided examples, and I tried to fix them all. Here are the details:
Error 0:
Unrecognized field name "V"
Influenced examples by Error 0:
fem_eigen_comp
Fix Error 0:
Line 18 of examples\fem\fem_eigen_comp.m: fem.solver.sol.x = fem.solver.pod.V(:,ii) * 250;
should be: fem.solver.sol.x = fem.solver.sol.pod.V(:,ii) * 250;
Error 1οΌ
Incorrect size for expression 'Dvec': expected [6x6x:?x:?] but found [5x1].
Error in computeLagrangianGaussFast_mex
Influenced examples by Error 1:
dellasantina_arm
softhand
backbone_test
shapes_octoarm
shapes_reconstruct
shapes_threebellow_robotmanipulator
Fix Error 1:
I found it in computeLagrangianGaussFast.h that the type of "Dvec" is declared as "const emxArray_real_T *", but the "generateMexCLGF.m" uses "coder.typeof(10,[5,1])" for "Dvec", which means it's correct. So I ran "generateMexCLGF.m" again, got the correct mex-file, and fixed this problem finally.
Error 2:
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To operate on each element of the matrix individually, use TIMES (.*) for elementwise multiplication.
Influenced examples by Error 2:
suzumori_gripper
jacobian_control_shapes
shapes_backbone_IK_test
Fix Error 2:
Line 76 of tubeplot.m: Fx = (1+1/8*sin(2*X).^2)*cos(X)
should be: Fx = (1+1/8*sin(2*X).^2).*cos(X)
Warning 1 (when running dellasatina_arm):
Warning: Name is nonexistent or not a directory: PATH\mpi-packages\sorotokicode+preset+shapes\assets
Fix Warning 1:
Line 49 of katzschmann.m: functionPath = fullfile(currentDir,'assets');
should be: functionPath = fullfile(fileparts(currentDir),'assets');
Hope them can be merged into next version. Thank you again for your great work!