opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 307 forks source link

`StdVectorDouble` (and other similar classes) in MATLAB store java objects #3793

Open carmichaelong opened 1 month ago

carmichaelong commented 1 month ago

This can become an issue downstream. For instance:

table = TimeSeriesTable('filename.mot');
t0 = table.getIndependentColumn().get(0);

t0 is of type java.lang.Double. This then does not work for use with a function such as TimeSeriesTable::appendRow() as the first argument is of type double.

One work around is to pass in t0.doubleValue() instead, but this is difficult to track down for MATLAB users.