Page 1 of 1

error message despite using eigen plugin

Posted: 02 Jun 2025, 10:42
by need2know
Hi,

i work with the new eigen plugin for matrix calculation in my simulation project (v4.10) (therefore used the example inverseDynamics.ttt). Despite using the new plugin following warning message occurs:

Code: Select all

[/Path/script:warning] module 'matrix' was implicitly loaded.
[/Path/script:warning] "matrix" module is deprecated. please use simEigen
Does the warning message apprears correct in this case?

Cheers
______________________________________________________________
my code (found similar approach in the example inverseDynamics.ttt):

Code: Select all

import('simEigen', '*')

local mMatrix = Matrix(math.floor(nNumberOfPoints),6,tData)
local tPositions = mMatrix:block(1,1,mMatrix:rows(),3):data()


Re: error message despite using eigen plugin

Posted: 02 Jun 2025, 11:45
by coppelia
Hello,

this is normal: previously, we had similar Matrix and Vector classes implicitly loaded. Many scripts still use that, thus the warning.
The better approach would be to explicitly use the Matrix and Vector classes from the simEigen module, like you are doing.

Cheers