# Position conversion in feature

**URL:** https://forum.universal-robots.com/t/position-conversion-in-feature/39086
**Category:** Technical Questions
**Created:** [March 18, 2025, 10:42am UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086 "2025-03-18T10:42:30Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ali.mohammadijou\_1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ali.mohammadijou\_1](https://forum.universal-robots.com/u/ali.mohammadijou_1)
#### Post date: [March 18, 2025, 10:42am UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/1 "2025-03-18T10:42:30Z")

</div>

Dear Forum,

We have recently purchased 2 UR5s for our project. I have defined a new Feature Plane called “display” with following specs:  
_p[0.5391674406968558,0.2501721015613766,0.3385201982265926,0.7230735002351665,-0.7705353908790852,-1.3823487705853308]_  
I put the robot in a random position and read the following 2 Positions in respect to Base and display (I attached the photos):  
_Point in Base: **p[0.45312, 0.30545, 0.47647, 4.071, -0.539, -2.517]**_

_When I switch to display, I read the following:_

_Point in display: **p[-0.05105, 0.06768, 0.14934, 1.727, -0.221, -2.762]**_

My question is, how to I convert them from one to another ? preferably using Math equations. or otherwise by using the Functions within a program.

 ![Point in Display](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/1/15091dedffa4638c8a3448ad66bf6ee8ea6ed718.jpeg)  
 ![Point in Base](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/49272c1f159bf64fec2942c3b41ac0acfaa1c2d5.jpeg)  
am.

---

<div class="post-metadata">

### Author: ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)
#### Post date: [March 18, 2025, 11:33am UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/2 "2025-03-18T11:33:19Z")

</div>

This should transform your base coordinates to your plane coordinates.

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/62201579ad65dc7b58d6c4c4ae4256adb218af01.png)

---

<div class="post-metadata">

### Author: ![ali.mohammadijou\_1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ali.mohammadijou\_1](https://forum.universal-robots.com/u/ali.mohammadijou_1)
#### Post date: [March 18, 2025, 12:28pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/3 "2025-03-18T12:28:26Z")

</div>

Hi efn,  
I tried your formula for a point. unfortunately did not work. I attached the photos.

 ![Formula](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/49f04baae601bf45c8fbffdc59a277bf45aa979e.jpeg)  
 ![Result](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/2/27ef17b7b5e350b210ea3f44e6c34c2008167eb5.jpeg)  
 ![Base](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/40c9726c19f2d9ea263dd6447bd881d624b0ad1f.jpeg)  
 ![Display](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/66eec7f69ddc49c11e66f13bd50b9b7d710a43d6.jpeg)

---

<div class="post-metadata">

### Author: ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)
#### Post date: [March 18, 2025, 12:52pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/4 "2025-03-18T12:52:02Z")

</div>

That’s my bad. You must have your custom feature in the pose\_inv() and your position as the last argument in the pose\_trans. 🙂

---

<div class="post-metadata">

### Author: ![ali.mohammadijou\_1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ali.mohammadijou\_1](https://forum.universal-robots.com/u/ali.mohammadijou_1)
#### Post date: [March 18, 2025, 1:13pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/5 "2025-03-18T13:13:24Z")

</div>

Hi efn,

Thanks for the correction. Indeed now the X, Y and Z are correct. but Rx, Ry and Rz are still incorrect. any thoughts on that ?

 ![Result2](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/1/1c75dd814b1396abee69225cbb6ba207c5b3b872.jpeg)

---

<div class="post-metadata">

### Author: ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)
#### Post date: [March 18, 2025, 1:31pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/6 "2025-03-18T13:31:49Z")

</div>

The rotations have other values, but the result pose is the same. 🙂 There are multiple solutions to each position.  
If you write the values into the Move tab, then you will see the robot won’t move.

---

<div class="post-metadata">

### Author: ![ali.mohammadijou\_1](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ali.mohammadijou\_1](https://forum.universal-robots.com/u/ali.mohammadijou_1)
#### Post date: [March 18, 2025, 2:01pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/7 "2025-03-18T14:01:21Z")

</div>

Dear efn,

Indeed you are correct, the robot did not move. So I assume there is no way to convert the Rotation values ? since there are multiple solutions ?

---

<div class="post-metadata">

### Author: ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)
#### Post date: [March 18, 2025, 2:07pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/8 "2025-03-18T14:07:45Z")

</div>

Not that I know of, no. Do you actually need to have the same numbers, if the pose is the same? 🙂 You should be able to alter the pose as you wish still.

---

<div class="post-metadata">

### Author: ![dbarton](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@dbarton](https://forum.universal-robots.com/u/dbarton)
#### Post date: [March 18, 2025, 2:11pm UTC](https://forum.universal-robots.com/t/position-conversion-in-feature/39086/9 "2025-03-18T14:11:10Z")

</div>

there are multiple ways. What is your end goal? If you want to just associate a position from base to your feature, you can just set that in the command section of the move. If you want to do different pose modifications on the fly, you may need a combination of pose trans and pose adds. I would suggest having a look through the URscript manual.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/3/340123dbdb296cebeade064f2ee9bc0dd23f99f1.png)
