error message despite using eigen plugin

Report crashes, strange behaviour, or apparent bugs
Post Reply
need2know
Posts: 22
Joined: 29 Jul 2024, 09:53

error message despite using eigen plugin

Post 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()

coppelia
Site Admin
Posts: 10738
Joined: 14 Dec 2012, 00:25

Re: error message despite using eigen plugin

Post 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
Post Reply