write moco solution extra parameters

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
barak ostraich
Posts: 42
Joined: Thu Apr 12, 2018 12:17 am

write moco solution extra parameters

Post by barak ostraich » Wed Oct 07, 2020 12:05 am

can i add extra parameters at the header of Moco solution::write?.
i want to add some info on the accuracy and other info parameters before writing

Tags:

User avatar
barak ostraich
Posts: 42
Joined: Thu Apr 12, 2018 12:17 am

Re: write moco solution extra parameters

Post by barak ostraich » Wed Oct 07, 2020 3:04 am

SOLVED:
i modified the

Code: Select all

MocoTrajectory.h
and moved the

Code: Select all

convertToTable
to be public
then i can:

Code: Select all

    TimeSeriesTable ts=solution.convertToTable();
    ts.updTableMetaData().setValueForKey("new key",
                std::to_string(newdouble) );

POST REPLY