API Bug? JointSet not updated
Posted: Wed Sep 15, 2010 2:51 pm
Hello OpenSim Developers and Community,
I am currently working with the OpenSim API.
I can successfully import a .osim file and extract the body names from Model.getBodySet.getName() where i is an int to loop through all bodies.
However the same paradigm does not work for Model.getJointSet.getName(). The joint set will return zero number of joints (also seen with Model.printBasicInfo), however if I open this exact model (BothLegs.osim) using the OpenSim GUI, the tree list indicates 13 joints for the model.
Where are these joint names stored in the Model class? Are they accessible?
I would be glad to provide more detail about this problem as needed.
Thank you for your time,
Nick Dunbar
University of Florida
Orthopedic Biomechanics Lab
I am currently working with the OpenSim API.
I can successfully import a .osim file and extract the body names from Model.getBodySet.getName() where i is an int to loop through all bodies.
However the same paradigm does not work for Model.getJointSet.getName(). The joint set will return zero number of joints (also seen with Model.printBasicInfo), however if I open this exact model (BothLegs.osim) using the OpenSim GUI, the tree list indicates 13 joints for the model.
Where are these joint names stored in the Model class? Are they accessible?
I would be glad to provide more detail about this problem as needed.
Thank you for your time,
Nick Dunbar
University of Florida
Orthopedic Biomechanics Lab