I would like to ask if it is possible to get transformation matrix to transform Target plane when only two planes are given Known Target Plane and Known Relative Plane.
The current logic I have to get a new relative plane is this :
Transform Known Relative Plane from Known Target Plane to XY Plane
Transform the Known Relative Plane from XY to Target Plane.
The PlanePlane transformation dont work, I tried.
Is it possible to do the same but somehow calculating transformation matrix in order to multiple Target Plane by Transform.
If I understand correctly, this is similar to solving for the wrist position of a robot given a tool offset? I.e - you need to find the transformation from target A to target B, given the flange position G to find the new flange position G_, but you are having an issue with the RC P2P method directly, whereby the matrix is showing some mirroring or weird rotations?
Unfortunately codewise I would have approached it identically to you, ensuring that I make a new instance of the flange plane G. Simplified:
Transform xForm = Transform.PlaneToPlane(wobj.CSPlane, Plane.WorldXY);
Plane trg = new Plane(target);
trg.Transform(xForm);
Where wobj.CSPlane is your intermediate plane.
As for whether you can do this on the matrices directly for multiple targets / links, then yes - I just don’t have it on hand - I can look for it in the morning.