How to compute outputs from the solution in Moco

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jingke Song
Posts: 34
Joined: Tue Oct 19, 2021 4:52 am

How to compute outputs from the solution in Moco

Post by Jingke Song » Sat Apr 01, 2023 6:53 am

Hello everyone!
When I finish solve the study and obtain a MocoSolution, I want to extract the information I want from the Moco simulation results.
In the matlab moco simulation, I use the following code to extract the target result information.


gaitTrackingSolution = study.solve();
outputs = StdVectorString();
outputs.add('/jointset/groundPelvis/pelvis_tilt/value');
table = study.analyze(gaitTrackingSolution,outputs);

However, the desired results cannot be obtained, and the following warning prompts are provided:

"Warning: No outputs were connected to 'reporter' of type TableReporter__double_. You can connect outputs by calling addToReport()."

I hope someone can help me and look forward to any response from you.
Thank you very much!

Song Jingke

Tags:

User avatar
Jingke Song
Posts: 34
Joined: Tue Oct 19, 2021 4:52 am

Re: How to compute outputs from the solution in Moco

Post by Jingke Song » Sat Apr 01, 2023 8:09 pm

OK, I have found the cause of the problem.

POST REPLY