Page 1 of 1

Example of plugin that implements a data reader for alternative IMU system

Posted: Mon Jul 15, 2024 7:55 am
by s.bosch
OpenSim::XsensDataReader and OpenSim::APDMDataReader are part of the OpenSim sources. For an alternative IMU system, I would like to implement a plugin that implements the same functionality, including the MatLab and python availability of these classes. How would I go about doing that? Is there any example source code available for a plugin like that?

Re: Example of plugin that implements a data reader for alternative IMU system

Posted: Mon Jul 15, 2024 8:29 am
by aymanh
Hi Stephan,

Generally speaking, code has to be integrated into the opensim-core codebase in order to be available for both python and Matlab bindings. In which case you'd need to make a PR into our opensim-core that becomes part of OpenSim.

Alternatively, and possible faster way to go is to write python or Matlab code that converts the data format from your custom IMU system to either one of the existing/supported formats and have users run that as a preprocessing step. You could also build tables in memory from your IMU system for use by the OpenSense tools in OpenSim, and provide python/Matlab code to exercise it.

Hope this helps,
-Ayman