# Retrieving robot position via Secondary Interface

**URL:** <https://forum.universal-robots.com/t/retrieving-robot-position-via-secondary-interface/1200>\
**Category:** URCaps SDK\
**Created:** [September 21, 2017, 8:06pm UTC](https://forum.universal-robots.com/t/retrieving-robot-position-via-secondary-interface/1200 "2017-09-21T20:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon51496239](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@anon51496239](https://forum.universal-robots.com/u/anon51496239)\
**Post date:** [September 21, 2017, 8:06pm UTC](https://forum.universal-robots.com/t/retrieving-robot-position-via-secondary-interface/1200/1 "2017-09-21T20:06:47Z")

</div>

In one of my installation nodes, I want the user to be able to save the robot’s current position. I can connect via secondary interface and conceivably parse the data stream and extract the position that way. This isn’t trivial, so has anybody written any code to do this?

Or is there an easier way to accomplish the same thing?

---

<div class="post-metadata">

**Author:** ![anon58840761](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon58840761](https://forum.universal-robots.com/u/anon58840761)\
**Post date:** [September 21, 2017, 8:09pm UTC](https://forum.universal-robots.com/t/retrieving-robot-position-via-secondary-interface/1200/2 "2017-09-21T20:09:28Z")

</div>

I think you want to look at this example but it uses the realtime client though:

> [@URCap Sample: getRobotData Real Time Client reader URCap](http://forum.universal-robots.com/t/sample-getrobotdata-real-time-client-reader-urcap/1195):
>
> getRobotData Real Time Client reader URCap Description of functionality: This URCap implements a new custom class, getRobotRealtimeData.class, that connects to the Real Time Client interface, and reads the message. The data from the Real Time Client is broken into the information it represents, and implements get-methods to read actual TCP pose, actual joint positions, joint temperatures, joint operation modes and the safety limited speed scaling percentage. You can add your own get-methods a…

---

<div class="post-metadata">

**Author:** ![anon51496239](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@anon51496239](https://forum.universal-robots.com/u/anon51496239)\
**Post date:** [September 21, 2017, 8:27pm UTC](https://forum.universal-robots.com/t/retrieving-robot-position-via-secondary-interface/1200/3 "2017-09-21T20:27:52Z")

</div>

Ah brilliant. Thank you for the link!
