I am having troubles initiating a python object for receiving the value from opensim.statevector.getDataValue(index, returnVal) which requires a returnValue og type 'double &aValue'.
I have found the opensim.ArrayDouble() method for initiating python array objects, but haven't found anything similar for double&. Does it exist? - And sorry in advance if I have missed something obvious.
Cheers
Python API and initiating double& objects
- Jakob Welner
- Posts: 23
- Joined: Mon Dec 15, 2014 3:24 pm
- Christopher Dembia
- Posts: 506
- Joined: Fri Oct 12, 2012 4:09 pm
Re: Python API and initiating double& objects
I don't think there is a way...sorry.
But all should be fine; I think you can use getData(), which gives you an ArrayDouble that should be easier to work with.
But all should be fine; I think you can use getData(), which gives you an ArrayDouble that should be easier to work with.