File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
arcor2_AREditor/Assets/TABLET/Scripts/GUI Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments