Need help with printing the joint acceleration to file

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
karan taneja
Posts: 1
Joined: Wed Nov 20, 2019 1:09 pm

Need help with printing the joint acceleration to file

Post by karan taneja » Mon Jan 24, 2022 1:11 pm

Hi,
I am working on the example given on the API page here:
https://opensim-org.github.io/opensim-m ... Guide.html

I want to print out the acceleration of the elbow joint at each time-step to file.
The position and velocity states get printed to the .sto file but so far I am unable to understand how to print out the acceleration.
I have been reading about the point kinematics class and the getAccelerationStorage() function but do not know how to use it.

As I am a beginner with OpenSim's C++ API, any example code or resource would be appreciated.

Thanks.

Tags:

POST REPLY