# Hello world tutorial: precision error in translation z

**URL:** <https://forums.developer.nvidia.com/t/hello-world-tutorial-precision-error-in-translation-z/217165>\
**Category:** Isaac Sim\
**Tags:** omniverse\_extension, isaacsim\
**Created:** [June 10, 2022, 7:12am UTC](https://forums.developer.nvidia.com/t/hello-world-tutorial-precision-error-in-translation-z/217165 "2022-06-10T07:12:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mscwu](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mscwu](https://forums.developer.nvidia.com/u/mscwu)\
**Post date:** [June 10, 2022, 7:12am UTC](https://forums.developer.nvidia.com/t/hello-world-tutorial-precision-error-in-translation-z/217165/1 "2022-06-10T07:12:33Z")

</div>

Hi,

I just got started with isaac sim and I am confused by the precision of the environment.

Specifically, I am following the tutorial [hello world](https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/tutorial_core_hello_world.html#isaac-sim-app-tutorial-core-hello-world).

Section 1.4 is about adding a cube to the scene at

```auto
position=np.array([0, 0, 1.0])

```

when I load the scene, the cube is placed at (0.0, 0.0, 0.99182)

I also saved the scene as a .usda file.

In the usda file, the definition of the cube is as below:

```auto
    def Cube "random_cube" (
        prepend apiSchemas = ["MaterialBindingAPI", "PhysicsCollisionAPI", "PhysicsMeshCollisionAPI", "PhysxCollisionAPI", "PhysicsRigidBodyAPI", "PhysicsMassAPI", "PhysxRigidBodyAPI"]
    )
    {
        float3[] extent = [(-0.25, -0.25, -0.25), (0.25, 0.25, 0.25)]
        rel material:binding = </World/Looks/visual_material> (
            bindMaterialAs = "strongerThanDescendants"
        )
        rel material:binding:physics = </World/Physics_Materials/physics_material_1> (
            bindMaterialAs = "strongerThanDescendants"
        )
        vector3f physics:angularVelocity = (0, 0, 0)
        bool physics:collisionEnabled = 1
        float physics:mass = 0.02
        bool physics:rigidBodyEnabled = 1
        vector3f physics:velocity = (0, 0, -0.32700002)
        float physxCollision:contactOffset = 0.1
        float physxCollision:minTorsionalPatchRadius = 0.8
        float physxCollision:restOffset = 0
        float physxCollision:torsionalPatchRadius = 1
        double size = 1
        quatd xformOp:orient = (1, 0, 0, 0)
        double3 xformOp:scale = (0.5, 0.5, 0.5)
        double3 xformOp:translate = (0, 0, 0.9918249845504761)
        uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:orient", "xformOp:scale"]
    }

```

I found two things:

1. precision error only occurs to translation z (I modified the code to `position=np.array([0, 1.0, 1.0])`and translation y is not affected.)
2. precision error is beyond double precision

This can be easily reproduced with Isaac SIm 2022.1.0.

Has anyone run into the same issue?  
Does anyone know why this happens?

Thank you

---

<div class="post-metadata">

**Author:** ![eliabntt94](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@eliabntt94](https://forums.developer.nvidia.com/u/eliabntt94)\
**Post date:** [June 10, 2022, 7:27am UTC](https://forums.developer.nvidia.com/t/hello-world-tutorial-precision-error-in-translation-z/217165/2 "2022-06-10T07:27:43Z")

</div>

Hey, yep I can relate to this. Luckly I don’t have to be super precise since you can get the robot location. But this is possibly annoying.

It happens also with rotations (eg 90 deg rot on \*-axis become 89.9\*\*\*\*)

---

<div class="post-metadata">

**Author:** ![ltorabi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ltorabi/32/14043_2.png) [@ltorabi](https://forums.developer.nvidia.com/u/ltorabi)\
**Post date:** [June 13, 2022, 5:28pm UTC](https://forums.developer.nvidia.com/t/hello-world-tutorial-precision-error-in-translation-z/217165/3 "2022-06-13T17:28:30Z")

</div>

@Ossama_Ahmed

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [April 5, 2024, 3:37pm UTC](https://forums.developer.nvidia.com/t/hello-world-tutorial-precision-error-in-translation-z/217165/5 "2024-04-05T15:37:08Z")

</div>


