I was trying to do a lot of things in Python's API but I found some errors that I would like you to solve or help. Probably, These errors occur because I don't understand well the architecture of OpenSim. The errors are shown below:
1. When I try to print an array, what it is printed is the type, something like this:
Code: Select all
<opensim.common.ArrayStr; proxy of <Swig Object of type 'OpenSim::Array< std::string > *' at 0x7fdd0ccbb330> >
Code: Select all
sto = osim.Storage(Dir + "/" + IK_results)
table = sto.getColumnLabels()
print (sto)
2. I'm doing a gait analysis and I want to visualize my model in each task (e.g scaling, IK, ID, ...) and I'm trying doing it with the next functions:
Code: Select all
mystate = model.initSystem()
model.setUseVisualizer(True)
mystate = model.initSystem()
model.getVisualizer().show(mystate)
3. I tried to load the results of IK (.sto file) to my model, do you think that the best way to do it is with the AnalyzeTool, in fact, I tried but I got the next error
, so I think that IK is just 1 state and I don't know how to configure the Analyzetool to run it.ERROR- Number of states in doesn't match number of states in model
Thank you very much for your attention.