I am trying to define a custom joint using OpenSim API 3.3 and create a similar arm to Arm26 which is one of your offical models.
In the arm26.osim file, I noticed that under TransformAxis, there is something called coordinates.
I wonder how to define it using api(I am scripting in C++ to create the arm).
Part of the arm26.osim is as follows.
Code: Select all
<Joint>
<CustomJoint name="r_shoulder">
<!--Defines how the child body moves with respect to the parent as a function of the generalized coordinates.-->
<SpatialTransform>
<!--3 Axes for rotations are listed first.-->
<TransformAxis name="rotation1">
<!--Names of the coordinates that serve as the independent variables of the transform function.-->
<coordinates>r_shoulder_elev</coordinates>
<!--Rotation or translation axis for the transform.-->