# Extracting Fx, Fy...Tx, Ty values from OptoForce (Hex Force Torque) Sensor

**URL:** <https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674>\
**Category:** URScript\
**Created:** [September 6, 2018, 4:32am UTC](https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674 "2018-09-06T04:32:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon53843399](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@anon53843399](https://forum.universal-robots.com/u/anon53843399)\
**Post date:** [September 6, 2018, 4:32am UTC](https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674/1 "2018-09-06T04:32:07Z")

</div>

Hi!

I’m trying to extract the Fx, Fy, Fz, Tx, Ty and Tz values measured by the OptoForce sensor during a Hand Guided operation, over RTDE.

I understand that there are a specific set of data fields available through the RTDE interface (to specify in the xml file), but not sure which one would be able to give me the values of the above mentioned variables since (correct me if I’m wrong) they only come with the OptoForce plugin and not the standard UR library.

Hope to seek some advice, or any other alternatives that can help with this.

Thank you!

---

<div class="post-metadata">

**Author:** ![anon31604918](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@anon31604918](https://forum.universal-robots.com/u/anon31604918)\
**Post date:** [September 6, 2018, 8:48am UTC](https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674/2 "2018-09-06T08:48:56Z")

</div>

My only idea is to write a thread, that continously updates the output float registers. These can be accessed via RTDE.

---

<div class="post-metadata">

**Author:** ![anon53843399](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@anon53843399](https://forum.universal-robots.com/u/anon53843399)\
**Post date:** [September 7, 2018, 5:42am UTC](https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674/3 "2018-09-07T05:42:57Z")

</div>

Thanks! Tried that, but script stopped running when the OptoForce’s hand-guidance teaching mode was enabled.

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [September 13, 2018, 7:26am UTC](https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674/4 "2018-09-13T07:26:13Z")

</div>

The question is probably more related to OnRobot directly (fka. Optoforce).

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [September 13, 2018, 7:26am UTC](https://forum.universal-robots.com/t/extracting-fx-fy-tx-ty-values-from-optoforce-hex-force-torque-sensor/2674/5 "2018-09-13T07:26:16Z")

</div>

The question is probably more related to OnRobot directly (fka. Optoforce).
