Skip to content

Commit 7d2e87e

Browse files
authored
Merge pull request #228 from Kapim/devel
Fix
2 parents 9e854b0 + 2821544 commit 7d2e87e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arcor2_AREditor/Assets/TABLET/Scripts/GUI/ActionObjectAimingMenu.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public async Task UpdateMenu() {
175175
foreach (IO.Swagger.Model.Pose point in currentObject.ActionObjectMetadata.ObjectModel.Mesh.FocusPoints) {
176176
AimingPointSphere sphere = Instantiate(Sphere, currentObject.transform).GetComponent<AimingPointSphere>();
177177
sphere.transform.localScale = new Vector3(0.02f, 0.02f, 0.02f);
178-
sphere.transform.localPosition = DataHelper.PositionToVector3(point.Position);
179-
sphere.transform.localRotation = DataHelper.OrientationToQuaternion(point.Orientation);
178+
sphere.transform.localPosition = TransformConvertor.ROSToUnity(DataHelper.PositionToVector3(point.Position));
179+
sphere.transform.localRotation = TransformConvertor.ROSToUnity(DataHelper.OrientationToQuaternion(point.Orientation));
180180
sphere.Init(idx, $"Aiming point #{idx}");
181181
spheres.Add(sphere);
182182
++idx;

0 commit comments

Comments
 (0)