How to optimize the control of manipulator

Typically: "How do I... ", "How can I... " questions
zhangm365
Posts: 46
Joined: 19 Jun 2021, 12:58

Re: How to optimize the control of manipulator

Post by zhangm365 »

OK, Besides, How to solve the second norm of a matrix in LUA script? I only find the vector norm of this vector in file (matrix.lua).
Thanks.

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: How to optimize the control of manipulator

Post by fferri »

What is the second norm of a matrix?

zhangm365
Posts: 46
Joined: 19 Jun 2021, 12:58

Re: How to optimize the control of manipulator

Post by zhangm365 »

oh. That is just the matirx norm. For example,the function norm in matlab.
Thanks.

zhangm365
Posts: 46
Joined: 19 Jun 2021, 12:58

Re: How to use the customed algorithm to calculate IK of manipulator

Post by zhangm365 »

As my first problem of statement,

As the build-in cals.method,

Code: Select all

simIK.setIkGroupCalculation(ikEnv,ikGroup,simIK.method_damped_least_squares,1.1,10)
How to use a customed algorithm embedded in the script of the scene to calculate the IK of the manipulator?

I want to replace the DLS cals.method with my control algorithm, how are the paramaters to set?

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: How to optimize the control of manipulator

Post by fferri »

zhangm365 wrote: 05 Jan 2022, 03:58 oh. That is just the matirx norm. For example,the function norm in matlab.
Thanks.
Matrix norm is a very ambiguous concept in mathematics.

According to the MATLAB documentation of norm:
2-Norm of Matrix

Calculate the 2-norm of a matrix, which is the largest singular value.

Code: Select all

X = [2 0 1;-1 1 0;-3 3 0];
n = norm(X)
n = 4.7234
that is the largest singular value.

There is no SVD in matrix.lua, but you can find it in the simExtEigen plugin. Once you compiled and installed the simEigen plugin, you can do in CoppeliaSim:

Code: Select all

m=Matrix:fromtable{{2,0,1},{-1,1,0},{-3,3,0}}
singularValues=Matrix:fromtable(simEigen.svd(m:totable{}))
singularValues[1] = 4.72342205

Post Reply