gwexpy.interop.exudyn_

Interoperate with Exudyn sensor output.


Interoperability with Exudyn sensor output.

Exudyn’s mbs.GetSensorStoredData() returns an ndarray where column 0 is time and the remaining columns are sensor values. Alternatively, sensor data can be exported to text files via exu.SensorExport.

References

https://github.com/jgerstmayr/EXUDYN

Functions

from_exudyn_sensor(cls, data, *[, ...])

Convert Exudyn sensor data to TimeSeries or TimeSeriesMatrix.

gwexpy.interop.exudyn_.from_exudyn_sensor(cls: type, data: ndarray | str | Path, *, output_variable: str = 'Displacement', column_names: list[str] | None = None) Any[source]

Convert Exudyn sensor data to TimeSeries or TimeSeriesMatrix.

Parameters:
  • cls (type) – TimeSeries or TimeSeriesMatrix.

  • data (ndarray or str or Path) – Either the array returned by mbs.GetSensorStoredData() (column 0 = time), or a path to a space-delimited text file with the same layout.

  • output_variable (str) – Exudyn output variable name (e.g. "Displacement", "Velocity", "Force"). Used for unit inference.

  • column_names (list[str], optional) – Names for non-time columns. If not given, default names like "col_0", "col_1" etc. are used.

Return type:

TimeSeries or TimeSeriesMatrix