Joint definition issues when merging models
Posted: Fri Apr 05, 2019 10:47 am
I am attempting to combine add an accessory (a box) to an existing .osim model using Python, but receive the following error message:
RuntimeError: std::exception in 'SimTK::State & OpenSim::Model::initSystem()': Failed to connect Socket 'parent' of type PhysicalFrame (details: Component 'Wu_G' could not find '/jointset/ground_box/ground' of type PhysicalFrame. Make sure a component exists at this path and that it is of the correct type.
Thrown at Component.h:764 in getComponent().).
In Object 'ground_offset' of type PhysicalOffsetFrame.
Thrown at Component.cpp:312 in finalizeConnections().
Both models were created in OpenSim 4.0, and as far as I can tell from the XML files, there are no differences in the way in which the joints are defined between the two models. I am able to open the models individually in the GUI, as well a manually merged version of the models without any issues. The issue seems to be with the box model, as I am able to combine an older version of this model in which the joints were defined without the use of offsets.
Any suggestions as to why this might be? I have attached the .osim file for the box model that is proving to be problematic.
RuntimeError: std::exception in 'SimTK::State & OpenSim::Model::initSystem()': Failed to connect Socket 'parent' of type PhysicalFrame (details: Component 'Wu_G' could not find '/jointset/ground_box/ground' of type PhysicalFrame. Make sure a component exists at this path and that it is of the correct type.
Thrown at Component.h:764 in getComponent().).
In Object 'ground_offset' of type PhysicalOffsetFrame.
Thrown at Component.cpp:312 in finalizeConnections().
Both models were created in OpenSim 4.0, and as far as I can tell from the XML files, there are no differences in the way in which the joints are defined between the two models. I am able to open the models individually in the GUI, as well a manually merged version of the models without any issues. The issue seems to be with the box model, as I am able to combine an older version of this model in which the joints were defined without the use of offsets.
Any suggestions as to why this might be? I have attached the .osim file for the box model that is proving to be problematic.