# Equivalent of pose\_sub on a feature plane

**URL:** <https://forum.universal-robots.com/t/equivalent-of-pose-sub-on-a-feature-plane/1454>\
**Category:** URScript\
**Created:** [January 2, 2018, 2:33am UTC](https://forum.universal-robots.com/t/equivalent-of-pose-sub-on-a-feature-plane/1454 "2018-01-02T02:33:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon92958969](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@anon92958969](https://forum.universal-robots.com/u/anon92958969)\
**Post date:** [January 2, 2018, 2:33am UTC](https://forum.universal-robots.com/t/equivalent-of-pose-sub-on-a-feature-plane/1454/1 "2018-01-02T02:33:02Z")

</div>

I can do traversing on a feature plane with a pose\_trans. For example, if I want to move 5mm in X, 10mm in Y and 15mm in Z axis on a given plane, I can do this by  
current\_pos = get\_actual\_tcp\_pose()  
new\_pos = pose\_trans(current\_pos, p[0.005, 0.010, 0.015, 0, 0, 0])  
But if I do a pose\_sub(new\_pos, current\_pos), the result is not p[0.005, 0.010, 0.015, 0, 0, 0]. I think this is because pose\_sub gives the difference in base coordinates.

What function would I call to get the result in current\_pos’s plane?

Thanks

---

<div class="post-metadata">

**Author:** ![anon92958969](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@anon92958969](https://forum.universal-robots.com/u/anon92958969)\
**Post date:** [January 3, 2018, 2:08am UTC](https://forum.universal-robots.com/t/equivalent-of-pose-sub-on-a-feature-plane/1454/2 "2018-01-03T02:08:41Z")

</div>

Got it for anyone interested.  
pose\_sub(pose\_inv(current\_pos), pose\_inv(new\_pos)) gives the answer as it is the subtraction of translation from tcp to base of the two points
