Modifying Existing Joints: Remove Redundant Coordinate
Posted: Mon Feb 10, 2020 1:39 am
Hello,
I am trying to restructure the gait2354.osim Coordinate and Joint structure. I am having trouble initializing the integrator using the edited model. The example code is available at https://github.com/vinaym815/OpenSimExa ... 54.cpp#L13.
In this example I wished to remove the z axis translation of the ground_pelvis custom joint. First, I changed the Z axis translation function to a constant one and then removed the coordinate using the CoordinateSet.remove(). I am able to initialize system; however, the program crashes when I try to initialize the manger. The edited model still have pelvis_tz coordinate in the XML file and removing it solves the issue. Any idea how to remove this redundant coordinate programatically.
Thank You
I am trying to restructure the gait2354.osim Coordinate and Joint structure. I am having trouble initializing the integrator using the edited model. The example code is available at https://github.com/vinaym815/OpenSimExa ... 54.cpp#L13.
In this example I wished to remove the z axis translation of the ground_pelvis custom joint. First, I changed the Z axis translation function to a constant one and then removed the coordinate using the CoordinateSet.remove(). I am able to initialize system; however, the program crashes when I try to initialize the manger. The edited model still have pelvis_tz coordinate in the XML file and removing it solves the issue. Any idea how to remove this redundant coordinate programatically.
Thank You