# Get Position of Primitive

**URL:** <https://forums.developer.nvidia.com/t/get-position-of-primitive/146702>\
**Category:** Isaac Sim\
**Created:** [August 13, 2020, 2:55pm UTC](https://forums.developer.nvidia.com/t/get-position-of-primitive/146702 "2020-08-13T14:55:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akskir](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@akskir](https://forums.developer.nvidia.com/u/akskir)\
**Post date:** [August 13, 2020, 2:55pm UTC](https://forums.developer.nvidia.com/t/get-position-of-primitive/146702/1 "2020-08-13T14:55:07Z")

</div>

Hi everyone!

Is it possible to get current position of primitive? Now I can only get translation

---

<div class="post-metadata">

**Author:** ![toni.sm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.sm/32/27559_2.png) [@toni.sm](https://forums.developer.nvidia.com/u/toni.sm)\
**Post date:** [August 16, 2020, 4:22pm UTC](https://forums.developer.nvidia.com/t/get-position-of-primitive/146702/2 "2020-08-16T16:22:33Z")

</div>

Hi,

If you are working with Python, you can use the Isaac **Dynamic Control binding**.  
In particular, the method `get_rigid_body_pose` which returns a **Transform** object with the position `p` (in meters) and the rotation `r` as quaternion

This small code can be help:

```auto
from omni.isaac.dynamic_control import _dynamic_control

dc=_dynamic_control.acquire_dynamic_control_interface()

object=dc.get_rigid_body("/Stage/bin/SmallKLT")
object_pose=dc.get_rigid_body_pose(object)

print("position:", object_pose.p)
print("rotation:", object_pose.r)

```

It gets the pose of the bin from an opened scenario (e.g. /Isaac/Samples/Leonardo/Stage/ur10\_bin\_filling.usd). You can try the code just writing in the Script Editor tab (Window \> Script Editor), running the simulation and executing the script (Script Editor \> Command \> Execute)

 ![pose](https://global.discourse-cdn.com/nvidia/original/3X/3/3/33cd24831ab0b0823772f3a9f323bfe85c78dc29.jpeg)

Note: The position of the bin in the Details tab is the position of the primitive before running the simulation (in a floating state slightly off the ground)

---

<div class="post-metadata">

**Author:** ![baikaixin](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@baikaixin](https://forums.developer.nvidia.com/u/baikaixin)\
**Post date:** [January 2, 2023, 1:39pm UTC](https://forums.developer.nvidia.com/t/get-position-of-primitive/146702/3 "2023-01-02T13:39:59Z")

</div>

Is there any way to get the rotation and position with omniverse replicator api? Or where could i find the documentation of the “dynamic control”?

---

<div class="post-metadata">

**Author:** ![rthaker](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/rthaker/32/171374_2.png) [@rthaker](https://forums.developer.nvidia.com/u/rthaker)\
**Post date:** [January 26, 2023, 10:03am UTC](https://forums.developer.nvidia.com/t/get-position-of-primitive/146702/4 "2023-01-26T10:03:09Z")

</div>

Hi @baikaixin , you can find Dynamic control documentation here: [Dynamic Control — Omniverse Robotics documentation](https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/ext_omni_isaac_dynamic_control.html)

---

<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:** [February 16, 2023, 10:44pm UTC](https://forums.developer.nvidia.com/t/get-position-of-primitive/146702/5 "2023-02-16T22:44:17Z")

</div>

Closed on February 16, 2023, 10:44pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
