Hello,
I am encountering an issue with my OpenSim Moco project and would appreciate any assistance. Below are the details of the errors I am facing:
Unrecognized function or variable 'getAsMat'.
Error in osimTableToStruct (line 65)
dataArray = osimtable.getDependentColumnAtIndex(iLabel).getAsMat();
Error in osimMocoTrajectoryReport (line 134)
ref = osimTableToStruct(refTable);
Error in InverseWithEMGquali (line 131)
report = osimMocoTrajectoryReport(model, ...)
Despite my efforts, I have not been able to resolve the error. Has anyone encountered a similar issue or have suggestions on how to fix this?
Any help or insights would be greatly appreciated.
Thank you!
Help Needed: Unrecognized Function or Variable 'getAsMat' Error
- Ebenezer Adorão
- Posts: 5
- Joined: Wed Oct 26, 2022 8:27 am
- Nicholas Bianco
- Posts: 1045
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Help Needed: Unrecognized Function or Variable 'getAsMat' Error
Hi Ebenezer,
If OpenSim is installed correctly, 'getAsMat()' should work out of the box. What version of OpenSim are you using?
Best,
Nick
If OpenSim is installed correctly, 'getAsMat()' should work out of the box. What version of OpenSim are you using?
Best,
Nick
- Ebenezer Adorão
- Posts: 5
- Joined: Wed Oct 26, 2022 8:27 am
Re: Help Needed: Unrecognized Function or Variable 'getAsMat' Error
Hello Nick,
I am using version 4.5
I am using version 4.5
- Nicholas Bianco
- Posts: 1045
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Help Needed: Unrecognized Function or Variable 'getAsMat' Error
Hi Ebenezer,
To help debug, could you go inside the 'osimTableToStruct' script and see what variable type "osimtable.getDependentColumnAtIndex(iLabel)" returns?
Best,
Nick
To help debug, could you go inside the 'osimTableToStruct' script and see what variable type "osimtable.getDependentColumnAtIndex(iLabel)" returns?
Best,
Nick