How to use Storage::exportToTable()

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Mohammadreza Rezaie
Posts: 390
Joined: Fri Nov 24, 2017 12:48 am

How to use Storage::exportToTable()

Post by Mohammadreza Rezaie » Wed May 03, 2023 6:37 am

Hi, I see OpenSim::Strorage has several useful functions which are not available for TimeSeriesTable, so I have to do a conversion and it seems that Strorage::exportToTable() should be used. But, in this simple example:

Code: Select all

s = osim.Storage('ik.mot')
t = s.exportToTable()
the output is <Swig Object of type 'TimeSeriesTable *' at 0x000001DD4EE01B40> and I cannot work with that as a TimeSeriesTable. Sometimes, it says:
swig/python detected a memory leak of type 'TimeSeriesTable *', no destructor found.

Any help is greatly appreciated.

Regards,
Mohammadreza

Tags:

User avatar
Mohammadreza Rezaie
Posts: 390
Joined: Fri Nov 24, 2017 12:48 am

Re: How to use Storage::exportToTable()

Post by Mohammadreza Rezaie » Thu May 04, 2023 9:50 am

Hi, Any suggestion?

POST REPLY