Analyze Moco Trajectory in C++
Posted: Thu Aug 22, 2024 9:10 pm
Hi Moco Team,
I'm trying to apply the analyze() command to a Moco trajectory in C++ to get a model component output which is a SimTK Vector type. I get an error ('SimTK::VectorBase<ELT>::TNeg': cannot access private typedef declared in class 'SimTK::VectorBase<ELT>') with the following code:
I don't get the same error when I replace the SimTK::Vector type with others like SimTK::Vec3 or SimTK::SpatialVec - but then I obviously don't get any model outputs from the analysis. Is there any reason for why this is happening and how I might get the Vector out?
Aaron
I'm trying to apply the analyze() command to a Moco trajectory in C++ to get a model component output which is a SimTK Vector type. I get an error ('SimTK::VectorBase<ELT>::TNeg': cannot access private typedef declared in class 'SimTK::VectorBase<ELT>') with the following code:
Code: Select all
analyze<SimTK::Vector>(trackingModel, statesTable, controlsTable, outputsToGet).flatten()
Aaron