Python API and initiating double& objects

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jakob Welner
Posts: 23
Joined: Mon Dec 15, 2014 3:24 pm

Python API and initiating double& objects

Post by Jakob Welner » Mon Nov 16, 2015 4:03 am

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

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Python API and initiating double& objects

Post by Christopher Dembia » Mon Nov 16, 2015 11:27 am

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.

POST REPLY