AssemblySolver instantiation:
Posted: Sat Nov 10, 2018 7:46 pm
Declaring assemblysolver object:
I read an open-link model from an XML file (skeleton_file.osim). I then added bodies to it so that it will become a closed chain body system after assembly. A snippet of my code is attached.
'weights' vector is to ensure that some of the joint angles closely remain unchanged during the assembly. This gives a compile error because the first argument of AssemblySolver is a 'const Model'. My understanding is that if I declare Model skeleton as const in the first line then I can no longer change it. Is there a way around this? I will appreciate any insight.
I read an open-link model from an XML file (skeleton_file.osim). I then added bodies to it so that it will become a closed chain body system after assembly. A snippet of my code is attached.
'weights' vector is to ensure that some of the joint angles closely remain unchanged during the assembly. This gives a compile error because the first argument of AssemblySolver is a 'const Model'. My understanding is that if I declare Model skeleton as const in the first line then I can no longer change it. Is there a way around this? I will appreciate any insight.