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

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Stephan Bosch
Posts: 1
Joined: Tue Jun 25, 2024 6:27 am

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

Post by Stephan Bosch » Mon Jul 15, 2024 7:55 am

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?

Tags:

User avatar
Ayman Habib
Posts: 2244
Joined: Fri Apr 01, 2005 12:24 pm

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

Post by Ayman Habib » Mon Jul 15, 2024 8:29 am

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

POST REPLY