Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Getting the location of a frame relative to another frame

scottdf93
scottdf93
edited March 2021 in Developer Tools
Im using the below line to get the XYZ of a frame relative to a frame called "Datum". The values i am getting in Y and Z are very different to what i am expecting. Can someone enlighten me as to why my Y and Z values are so different?

Vector3 x = rotatedFrame.Transform.GetRelativeTransform(datumFrame.Transform).Translation;

The values im getting 


The values im expecting

Comments

  • Robot studio was reporting to significant figures, to get the values expected I needed to use Math.Round