Example of plugin that implements a data reader for alternative IMU system
- Stephan Bosch
- Posts: 2
- Joined: Tue Jun 25, 2024 6:27 am
Example of plugin that implements a data reader for alternative IMU system
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:
- Ayman Habib
- Posts: 2252
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Example of plugin that implements a data reader for alternative IMU system
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
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