# Getting transform using python API

**URL:** <https://forum.hello-robot.com/t/getting-transform-using-python-api/1252>\
**Category:** Ask\
**Created:** [March 4, 2025, 10:20pm UTC](https://forum.hello-robot.com/t/getting-transform-using-python-api/1252 "2025-03-04T22:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ris7188](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@ris7188](https://forum.hello-robot.com/u/ris7188)\
**Post date:** [March 4, 2025, 10:20pm UTC](https://forum.hello-robot.com/t/getting-transform-using-python-api/1252/1 "2025-03-04T22:20:05Z")

</div>

I am working on Hello Robot and am exploring python API. I would like to know if there is a way to get tranform of the base. I am trying to make head camera detect aruco marker and then move the robot close to the marker.

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [March 6, 2025, 1:48pm UTC](https://forum.hello-robot.com/t/getting-transform-using-python-api/1252/2 "2025-03-06T13:48:21Z")

</div>

Hi @ris7188, I have some code showing how to do it here: [stretch\_pyfunmap/src/stretch\_pyfunmap/robot.py at main · hello-robot/stretch\_pyfunmap · GitHub](https://github.com/hello-robot/stretch_pyfunmap/blob/main/src%2Fstretch_pyfunmap%2Frobot.py#L131)
