What's the meaning of MeasureOrganizer = {0}?

AnyKinMeasureOrg Flexion_Right =
{
AnyKinRotational rot =
{
AnyRefFrame& ref0 = A;
AnyRefFrame& ref1 = B;
Type = RotAxesAngles;
};
MeasureOrganizer = {0};
};

What is the meaning of the MeasureOrganizer = {0} in the above code? I can't understand what it means because of the vague explanation in manuals and tutorials.
Is it B's rotation angle relative to A's x-axis?
Is it the angle of rotation of B's x-axis relative to A's x-axis?
Or the difference between the rotation angle of B around the x-axis of the global axis minus the angle of rotation of A around the x-axis of the global axis?

Besides, what is the difference of MeasureOrganizer = {0} and MeasureOrganizer = {4}?

Hi @Taejun

The MeasureOrganizer is a way of picking certain measures.
In your example above the AnyKinRotational has three measures a rotation a long the x,y,z axes.
These three measures will have the indices 0,1,2 in the measureorganizer.
MeasureOrganizer = {0}; means to take the first measure only (i.e. the rotation along the x axes.)

If the measure organizer had looked something like this:

AnyKinMeasureOrg example = {
  AnyKinRotational rot = {
    AnyRefFrame& ref0 = A;
    AnyRefFrame& ref1 = B;
    Type = RotAxesAngles;
  };
  AnyKinLinear lin = {
    AnyRefFrame& ref0 = A;
    AnyRefFrame& ref1 = B;
  };
};

Then the measure organizer would have 6 measures - three rotations and three translations.
MeasureOrganizer = {0}; would still be the x-rotation and MeasureOrganizer = {4}; would then be the x-translation.

The organizer is convenient when you need to make constraint, joints, drivers that are only supposed to work on a subset of the measures.

Best regards,
Bjørn

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.