# RTDE - Move Joints not TCP. Also, URP Source?

**URL:** <https://forum.universal-robots.com/t/rtde-move-joints-not-tcp-also-urp-source/3438>\
**Category:** Robot Communication\
**Created:** [January 10, 2019, 8:57pm UTC](https://forum.universal-robots.com/t/rtde-move-joints-not-tcp-also-urp-source/3438 "2019-01-10T20:57:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon69619444](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon69619444](https://forum.universal-robots.com/u/anon69619444)\
**Post date:** [January 10, 2019, 8:57pm UTC](https://forum.universal-robots.com/t/rtde-move-joints-not-tcp-also-urp-source/3438/1 "2019-01-10T20:57:30Z")

</div>

I have successfully translated the RTDE Python code included in the RTDE guide into a C# socket module.  
[https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/real-time-data-exchange-rtde-guide-22229/](https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/real-time-data-exchange-rtde-guide-22229/)

However, there is a lot of documentation missing about what the Input variables do. In the Python code, through experimentation I was able to learn that the 6 double values represent Cartesian XYZ position and Radial XYZ orientation.

What we really want to do is control the individual joint rotations, not the Tool Control Point (TCP).

This is so we can plan our own IK and pathfinding solutions. The URP file that is distributed with the guide is a binary file. Could we get access to the original script to modify it? Also, the fact the script stops running if the watchdog value isn’t set quick enough can cause issues, especially for debugging.

In summary, my requests in order of importance:  
Access or way to modify the RTDE URP script.  
If that is not possible, a way to control the joint positions via RTDE.  
A way to disable the script stop so that debugging is easier.  
More documentation on what the RTDE Input parameters do.

Thank you!

---

<div class="post-metadata">

**Author:** ![anon69619444](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon69619444](https://forum.universal-robots.com/u/anon69619444)\
**Post date:** [January 10, 2019, 9:45pm UTC](https://forum.universal-robots.com/t/rtde-move-joints-not-tcp-also-urp-source/3438/2 "2019-01-10T21:45:39Z")

</div>

So, I figured out how to load the URP on the robot itself. That largely solves my problem above, I just need to become familiar with the API.

Is there an editor for these files for the desktop? Even a Notepad++ Extension?

---

<div class="post-metadata">

**Author:** ![anon69619444](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon69619444](https://forum.universal-robots.com/u/anon69619444)\
**Post date:** [January 10, 2019, 9:59pm UTC](https://forum.universal-robots.com/t/rtde-move-joints-not-tcp-also-urp-source/3438/3 "2019-01-10T21:59:55Z")

</div>

Is there documentation on the UR Script API?

---

<div class="post-metadata">

**Author:** ![anon39868839](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon39868839](https://forum.universal-robots.com/u/anon39868839)\
**Post date:** [September 26, 2019, 7:22am UTC](https://forum.universal-robots.com/t/rtde-move-joints-not-tcp-also-urp-source/3438/4 "2019-09-26T07:22:51Z")

</div>

Hi Brad,  
The answer might be too late for you, but it might be helpfull for other users.

To download the URScript documentation (called **Script manual** ), follow this link :  
[https://www.universal-robots.com/download/?option=55373#section40879](https://www.universal-robots.com/download/?option=55373#section40879)

You can send data as input\_float or input\_integer to your robot and then use them on your URScript to control your robot.  
To get the data on your URScript use these funtions **read\_input\_integer\_register()** and **read\_input\_float\_register().**

Float and integer are not the only types available.

Then you can control the joint position of the robot with **servoj()**.

Mélanie
