# Universal Robots RTDE C++/Discrepancies between Tool Orientation Reading and Teach Pendant Display

**URL:** <https://forum.universal-robots.com/t/universal-robots-rtde-c-discrepancies-between-tool-orientation-reading-and-teach-pendant-display/29960>\
**Category:** Robot Communication\
**Created:** [August 14, 2023, 6:45pm UTC](https://forum.universal-robots.com/t/universal-robots-rtde-c-discrepancies-between-tool-orientation-reading-and-teach-pendant-display/29960 "2023-08-14T18:45:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon69443035](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@anon69443035](https://forum.universal-robots.com/u/anon69443035)\
**Post date:** [August 14, 2023, 6:45pm UTC](https://forum.universal-robots.com/t/universal-robots-rtde-c-discrepancies-between-tool-orientation-reading-and-teach-pendant-display/29960/1 "2023-08-14T18:45:39Z")

</div>

Hello everyone,

I’m facing an issue with reading the tool orientation using the getActualTCPPose() function in my C++ program using the Universal Robots RTDE interface. The problem arises under specific conditions when the robot has a certain tool orientation. I’m getting results that differ from what is displayed on the UR5 CB-series teach pendant screen.

For instance, for a particular tool orientation, I’m obtaining the following values from the getActualTCPPose() function:

RX = -1.96  
RY = -1.83  
RZ = -0.71  
However, on the teach pendant screen, I’m seeing:

RX = 2.479  
RY = 2.315  
RZ = 0.898  
It’s worth noting that regardless of the values I input on the teach pendant (whether it’s RX = -1.96, RY = -1.83, RZ = -0.71, or RX = 2.479, RY = 2.315, RZ = 0.898), the robot always positions itself in the same manner.

I’ve also attempted to use the getTargetWaypoint() and getForwardKinematics() functions, but the results remain consistent. It appears that the issue might be related to the conversion of the tool orientation representation.

Could anyone assist me in understanding why such discrepancies occur between the readings in my program and the displayed values on the teach pendant? Is there a way to accurately read the tool orientation just as it appears on the teach pendant screen?

I would greatly appreciate any guidance or suggestions!

Thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![sbaquedano](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sbaquedano](https://forum.universal-robots.com/u/sbaquedano)\
**Post date:** [January 31, 2024, 8:38am UTC](https://forum.universal-robots.com/t/universal-robots-rtde-c-discrepancies-between-tool-orientation-reading-and-teach-pendant-display/29960/2 "2024-01-31T08:38:30Z")

</div>

> [@anon69443035](#):
>
> conversion

Anyone with a good explanation for this? I’m facing the same issue using the RTDE and actual\_TCP\_pose.

Getting from the RTDE:

RX = -1.745  
RY = 2.604  
RZ = 0.054

On the teach pendant screen, I’m seeing:

RX = 1.752  
RY = -2.615  
RZ = -0.055

---

<div class="post-metadata">

**Author:** ![cg1](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@cg1](https://forum.universal-robots.com/u/cg1)\
**Post date:** [January 31, 2024, 7:51pm UTC](https://forum.universal-robots.com/t/universal-robots-rtde-c-discrepancies-between-tool-orientation-reading-and-teach-pendant-display/29960/3 "2024-01-31T19:51:05Z")

</div>

Hi.

When something like this happens to me its usually because the feature of the move tab is set to ‘view’ or something random and not to ‘base’.

Which is the frame you get your rtde data in.

---

<div class="post-metadata">

**Author:** ![sbaquedano](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@sbaquedano](https://forum.universal-robots.com/u/sbaquedano)\
**Post date:** [February 7, 2024, 3:23pm UTC](https://forum.universal-robots.com/t/universal-robots-rtde-c-discrepancies-between-tool-orientation-reading-and-teach-pendant-display/29960/4 "2024-02-07T15:23:59Z")

</div>

Hi, in my case I made sure that the feature was set to base!
