Hi guys!
I'm trying to implement an excitation to the muscles by coding directly, not using the GUI. So I tried adding an excitation value and adding a force but none of them seem to work even if I put crazy values. Is there another way?
Thank you so much in advance for your help!
Regards
muscle actuation
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: muscle actuation
Please see the example in the README file on GitHub: https://github.com/opensim-org/opensim-core (scroll down a bit to the "Simple example" section).
Re: muscle actuation
Thank you! I don't know how I missed it.
In the same algorithm you showed me, a reporter is used to print some coordinates in the terminal. Do you know how I could save them (and other variables) in a file (txt file for example)? ^^
In the same algorithm you showed me, a reporter is used to print some coordinates in the terminal. Do you know how I could save them (and other variables) in a file (txt file for example)? ^^
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: muscle actuation
You can replace the ConsoleReporter with a TableReportera reporter is used to print some coordinates in the terminal. Do you know how I could save them (and other variables) in a file
Code: Select all
TableReporter* myReporter = new TableReporter();
//etc.
Code: Select all
auto myTable = myReporter->getTable();
STOFileAdapter::write(myTable, "filename.sto");
Re: muscle actuation
That's really great!! Thank you very much, worked like a charm.