get contact force vector during C++ runtime
Posted: Mon Jun 03, 2019 11:49 pm
Dear Experts,
I have a question about getting method of contact force data through C++ OpenSim API.
I used something like:
However, obtained values show always zero even the contact force happens. Alternatively, I monitor force data from forcestorage in current. But, I'm willing to get contact force from runtime variables.
What kind of methods is lacked in my process?
Thank you,
Hide
I have a question about getting method of contact force data through C++ OpenSim API.
I used something like:
Code: Select all
osimModel.realizeAcceleration(si);
auto vals = osimModel.getForceSet().get(ContactForceName).getRecordValues(si);
What kind of methods is lacked in my process?
Thank you,
Hide