# Java

**URL:** https://forum.universal-robots.com/c/urcap-development/java/8.md?page=4

[Latest](https://forum.universal-robots.com/latest.md) · [Categories](https://forum.universal-robots.com/categories.md) · [Tags](https://forum.universal-robots.com/tags.md)

**Page:** 5

---

## [Is it possible to change the value of a variable in runtime?](https://forum.universal-robots.com/t/is-it-possible-to-change-the-value-of-a-variable-in-runtime/12246)

<div class="topic-metadata">

**Author:** [@anon71220377](https://forum.universal-robots.com/u/anon71220377)\
**Replies:** 10\
**Last updated:** [February 26, 2021, 9:26am UTC](https://forum.universal-robots.com/t/is-it-possible-to-change-the-value-of-a-variable-in-runtime/12246 "2021-02-26T09:26:56Z")

</div>

Hi, I’m writing an application that handles a few trays of materials. Every tray has three boolean variables: is it empty or full, and is the robot finished with the tray. My problem is, that the user should be able to …

---

## [Create a move Node with external digital Input](https://forum.universal-robots.com/t/create-a-move-node-with-external-digital-input/12560)

<div class="topic-metadata">

**Author:** [@anon92786336](https://forum.universal-robots.com/u/anon92786336)\
**Replies:** 3\
**Last updated:** [February 25, 2021, 3:06pm UTC](https://forum.universal-robots.com/t/create-a-move-node-with-external-digital-input/12560 "2021-02-25T15:06:02Z")

</div>

Hello I would like to program a URCap to set move Nodes with an external input (Hardware Button). When I click the Button I get an Error. I need Your help to solve this Problem. I used the (com.jbm.urcap.sample.vision…

---

## [Get Robot States Normal/E-Stop/Idle/Freedrive/](https://forum.universal-robots.com/t/get-robot-states-normal-e-stop-idle-freedrive/8373)

<div class="topic-metadata">

**Author:** [@bernd.heinzmann](https://forum.universal-robots.com/u/bernd.heinzmann)\
**Replies:** 9\
**Last updated:** [February 18, 2021, 8:29am UTC](https://forum.universal-robots.com/t/get-robot-states-normal-e-stop-idle-freedrive/8373 "2021-02-18T08:29:21Z")

</div>

With RTDE (RTDE runtime\_state enumeration - #2 by fujikit) you can read robot states Stopping : 0, Stopped : 1, Playing : 2, Pausing : 3, Paused : 4, Resuming : 5 But how is it possible to read in robot states “Normal/…

---

## [URCap multiple instance operation fails](https://forum.universal-robots.com/t/urcap-multiple-instance-operation-fails/12340)

<div class="topic-metadata">

**Author:** [@anon86073413](https://forum.universal-robots.com/u/anon86073413)\
**Replies:** 0\
**Last updated:** [February 15, 2021, 1:00pm UTC](https://forum.universal-robots.com/t/urcap-multiple-instance-operation-fails/12340 "2021-02-15T13:00:08Z")

</div>

Hey Forum! I have a URCap built, which would need to set values on a migatronic welder on the UR10 Robot. The URCap will write a script code, which sets values via Profinet connection. It also generates MoveNodes with…

---

## [Add Dependencies to Project](https://forum.universal-robots.com/t/add-dependencies-to-project/12169)

<div class="topic-metadata">

**Author:** [@anon97608879](https://forum.universal-robots.com/u/anon97608879)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 11:19am UTC](https://forum.universal-robots.com/t/add-dependencies-to-project/12169 "2021-02-05T11:19:34Z")

</div>

Hi there, I am trying to integrate a Text To Speech Function via a URCAP. For that I am using Marytts. In a standalone MavenProject the TextToSpeech Function is working and every Dependency i need is installed properly. …

---

## [Setpoint to a waypoint](https://forum.universal-robots.com/t/setpoint-to-a-waypoint/636)

<div class="topic-metadata">

**Author:** [@anon12495347](https://forum.universal-robots.com/u/anon12495347)\
**Replies:** 4\
**Last updated:** [February 4, 2021, 1:00pm UTC](https://forum.universal-robots.com/t/setpoint-to-a-waypoint/636 "2021-02-04T13:00:03Z")

</div>

I want to do like this \[image\] does anyone have an idea or any other way

---

## [How to run a personal method when program tree runs?](https://forum.universal-robots.com/t/how-to-run-a-personal-method-when-program-tree-runs/2100)

<div class="topic-metadata">

**Author:** [@anon48814700](https://forum.universal-robots.com/u/anon48814700)\
**Replies:** 12\
**Last updated:** [January 29, 2021, 10:48am UTC](https://forum.universal-robots.com/t/how-to-run-a-personal-method-when-program-tree-runs/2100 "2021-01-29T10:48:29Z")

</div>

I’ve write a method start another program in a program node but I don’t know how it will be automatically called. I’ve add this program node in a program tree, and I want this method be called when the program node is bl…

---

## [Auto-generate turning point WaypointNodes](https://forum.universal-robots.com/t/auto-generate-turning-point-waypointnodes/11820)

<div class="topic-metadata">

**Author:** [@anon86073413](https://forum.universal-robots.com/u/anon86073413)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 7:28am UTC](https://forum.universal-robots.com/t/auto-generate-turning-point-waypointnodes/11820 "2021-01-26T07:28:51Z")

</div>

Hey Forum! I’m trying to implement the following: The welder Cobot would need to go around a rectangle object, and i’m trying to auto generate the turning movement of the Robot, so that the operator only needs to set t…

---

## [InstallationNode vs ProgramNode](https://forum.universal-robots.com/t/installationnode-vs-programnode/11648)

<div class="topic-metadata">

**Author:** [@anon86073413](https://forum.universal-robots.com/u/anon86073413)\
**Replies:** 4\
**Last updated:** [January 21, 2021, 6:58pm UTC](https://forum.universal-robots.com/t/installationnode-vs-programnode/11648 "2021-01-21T18:58:40Z")

</div>

Hey Forum! I’ve been building my first URCap, and it is working wunderfull when there is only one instance of it. It’s basicly a complicated UI for setting parameters, and creating the programTree. My problem is that …

---

## [Read an Digital Input](https://forum.universal-robots.com/t/read-an-digital-input/11419)

<div class="topic-metadata">

**Author:** [@anon92786336](https://forum.universal-robots.com/u/anon92786336)\
**Replies:** 1\
**Last updated:** [January 13, 2021, 6:34pm UTC](https://forum.universal-robots.com/t/read-an-digital-input/11419 "2021-01-13T18:34:54Z")

</div>

Hallo I have the task to program a URCap. A part of it is to read a digital Input from the Robot. For example: When the digital Input goes High, then i would like to put out a text. Does someone have an example? Than…

---

## [Add URCap library in maven](https://forum.universal-robots.com/t/add-urcap-library-in-maven/11276)

<div class="topic-metadata">

**Author:** [@d.verhofstadt](https://forum.universal-robots.com/u/d.verhofstadt)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 1:47pm UTC](https://forum.universal-robots.com/t/add-urcap-library-in-maven/11276 "2021-01-13T13:47:27Z")

</div>

Hi As anyone been able to add/use interfaces of one maven project in another? I have been looking into this, but with no succes. Anyone have a step by step guide for this? I already tried by adjusting the pom.xml fil…

---

## [Altering program from Installation node](https://forum.universal-robots.com/t/altering-program-from-installation-node/10987)

<div class="topic-metadata">

**Author:** [@anon18250958](https://forum.universal-robots.com/u/anon18250958)\
**Replies:** 1\
**Last updated:** [December 22, 2020, 1:26pm UTC](https://forum.universal-robots.com/t/altering-program-from-installation-node/10987 "2020-12-22T13:26:57Z")

</div>

Hello, I´ve got the task to create a URCap where the programm has to be altered / created from an external source. So my jurney get me to write a Installation Node which is connecting to the external source via sockets…

---

## [generateScript() clarification](https://forum.universal-robots.com/t/generatescript-clarification/10896)

<div class="topic-metadata">

**Author:** [@anon86073413](https://forum.universal-robots.com/u/anon86073413)\
**Replies:** 2\
**Last updated:** [December 18, 2020, 8:38am UTC](https://forum.universal-robots.com/t/generatescript-clarification/10896 "2020-12-18T08:38:20Z")

</div>

Hey All! Thanks for all the help thus far, the forum was a great place for information, but i cant seem to figure SciptWriting with a URCap out. My URCap is esentialy a UI for our welding Robots parameters. Upon selec…

---

## [Adding Subprogram node in Java](https://forum.universal-robots.com/t/adding-subprogram-node-in-java/10542)

<div class="topic-metadata">

**Author:** [@anon71220377](https://forum.universal-robots.com/u/anon71220377)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 10:37am UTC](https://forum.universal-robots.com/t/adding-subprogram-node-in-java/10542 "2020-12-08T10:37:49Z")

</div>

Hi, I would like to know if there’s a way to add a SubProgram node to the program tree (I know it would just add it belo in polyscope and make a call to it) programatically in Java by pressing a button or searching for …

---

## [java.io.FileNotFoundException](https://forum.universal-robots.com/t/java-io-filenotfoundexception/10744)

<div class="topic-metadata">

**Author:** [@anon86073413](https://forum.universal-robots.com/u/anon86073413)\
**Replies:** 2\
**Last updated:** [December 11, 2020, 4:29pm UTC](https://forum.universal-robots.com/t/java-io-filenotfoundexception/10744 "2020-12-11T16:29:25Z")

</div>

Hi All! I’m developing a URCap in the Starter package which would need to use a txt file. one of my classes would need to read it: … File Reader reader=new FileReader("./data.txt"); BufferedReader bufferedReader=new…

---

## [Multiple Instances Program Nodes](https://forum.universal-robots.com/t/multiple-instances-program-nodes/1904)

<div class="topic-metadata">

**Author:** [@ocohen](https://forum.universal-robots.com/u/ocohen)\
**Replies:** 7\
**Last updated:** [December 10, 2020, 8:58am UTC](https://forum.universal-robots.com/t/multiple-instances-program-nodes/1904 "2020-12-10T08:58:54Z")

</div>

I am currently writing my first URCap, so I might not completley understand how this works. I have a program node which accepts a single text input and act accordingly: public void openView() { lblJobName.setText(“En…

---

## [Detect mounting through URCaps or urscript](https://forum.universal-robots.com/t/detect-mounting-through-urcaps-or-urscript/6800)

<div class="topic-metadata">

**Author:** [@ocohen](https://forum.universal-robots.com/u/ocohen)\
**Replies:** 5\
**Last updated:** [December 10, 2020, 1:59am UTC](https://forum.universal-robots.com/t/detect-mounting-through-urcaps-or-urscript/6800 "2020-12-10T01:59:34Z")

</div>

Is there a way to programmatically detect the mounting angles of the robot inside the URCaps? Alternatively is there a way to work in global coordinate system which is independent of the robot’s mounting angles? I want…

---

## [How to add 3d representation of robot](https://forum.universal-robots.com/t/how-to-add-3d-representation-of-robot/10414)

<div class="topic-metadata">

**Author:** [@rforner](https://forum.universal-robots.com/u/rforner)\
**Replies:** 2\
**Last updated:** [December 3, 2020, 10:17am UTC](https://forum.universal-robots.com/t/how-to-add-3d-representation-of-robot/10414 "2020-12-03T10:17:53Z")

</div>

Hello, I want to add to my Installation Node a 3D representation of robot like Move screen or Waypoint Node in Program screen. How can I do it? Thank you.

---

## [Maven 3rd party not being updated in the polyscope](https://forum.universal-robots.com/t/maven-3rd-party-not-being-updated-in-the-polyscope/9798)

<div class="topic-metadata">

**Author:** [@tulio](https://forum.universal-robots.com/u/tulio)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 1:04pm UTC](https://forum.universal-robots.com/t/maven-3rd-party-not-being-updated-in-the-polyscope/9798 "2020-11-30T13:04:28Z")

</div>

PROBLEM I came accross a catching problem. I’m not experience user on Maven, but I got it working and running. I developed an external modular library called com.needeng.draw I exported it as a .jar lib and I mannage t…

---

## [Creating warning popups while inserting data](https://forum.universal-robots.com/t/creating-warning-popups-while-inserting-data/10205)

<div class="topic-metadata">

**Author:** [@vineeth1](https://forum.universal-robots.com/u/vineeth1)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 12:22pm UTC](https://forum.universal-robots.com/t/creating-warning-popups-while-inserting-data/10205 "2020-11-23T12:22:07Z")

</div>

Hello, I am looking for an example where I can create warning popups while inserting data, for example in TCP Configurations, when you are entering the data above the max payload, you will get a message saying the maxim…

---

## [Remove auto inserted waypoint not working](https://forum.universal-robots.com/t/remove-auto-inserted-waypoint-not-working/9389)

<div class="topic-metadata">

**Author:** [@tulio](https://forum.universal-robots.com/u/tulio)\
**Replies:** 1\
**Last updated:** [October 27, 2020, 10:47pm UTC](https://forum.universal-robots.com/t/remove-auto-inserted-waypoint-not-working/9389 "2020-10-27T22:47:46Z")

</div>

Hi, I’m trying to create a MoveNode, and I want to remove the auto inserted waypoint, but the remove opeartion always returns false. Here is the code: public void createTree() { ProgramModel model = programAPI.g…

---

## [Detect other installed URCap(s)](https://forum.universal-robots.com/t/detect-other-installed-urcap-s/8580)

<div class="topic-metadata">

**Author:** [@anon11665646](https://forum.universal-robots.com/u/anon11665646)\
**Replies:** 4\
**Last updated:** [October 7, 2020, 12:11pm UTC](https://forum.universal-robots.com/t/detect-other-installed-urcap-s/8580 "2020-10-07T12:11:44Z")

</div>

Dear All! Can somebody suggest a solution for an URCap to detect what other URCap(s) are installed? Thank You, Varga Sándor.

---

## [Lightup URcap doesn't work in the controller](https://forum.universal-robots.com/t/lightup-urcap-doesnt-work-in-the-controller/8978)

<div class="topic-metadata">

**Author:** [@anon23062847](https://forum.universal-robots.com/u/anon23062847)\
**Replies:** 5\
**Last updated:** [October 6, 2020, 8:07am UTC](https://forum.universal-robots.com/t/lightup-urcap-doesnt-work-in-the-controller/8978 "2020-10-06T08:07:55Z")

</div>

Hi everyone, I followed the getting started articles related to the creation of the Lighup URCap. When I deploy this one on my Ursim virtual machine it works perfectly but as soon as I try to deploy it on the real teach…

---

## [Visit URCap Nodes using the TreeNode.traverse(newProgramVisitor() {}](https://forum.universal-robots.com/t/visit-urcap-nodes-using-the-treenode-traverse-newprogramvisitor/8927)

<div class="topic-metadata">

**Author:** [@anon5706138](https://forum.universal-robots.com/u/anon5706138)\
**Replies:** 1\
**Last updated:** [September 29, 2020, 7:27am UTC](https://forum.universal-robots.com/t/visit-urcap-nodes-using-the-treenode-traverse-newprogramvisitor/8927 "2020-09-29T07:27:08Z")

</div>

Hello, I have created a few childNodes for a parentNode and I want to visit some of them using this (TreeNode.traverse(new ProgramVisitor() { } )). I have copied the code of Mr Jacob. Here is below: TreeNode root = ap…

---

## [Error in the Polyscope because of creating a JButton](https://forum.universal-robots.com/t/error-in-the-polyscope-because-of-creating-a-jbutton/8940)

<div class="topic-metadata">

**Author:** [@anon21285010](https://forum.universal-robots.com/u/anon21285010)\
**Replies:** 4\
**Last updated:** [September 29, 2020, 5:32am UTC](https://forum.universal-robots.com/t/error-in-the-polyscope-because-of-creating-a-jbutton/8940 "2020-09-29T05:32:16Z")

</div>

Hi everybody, I created a JButton like the Example in the starter package and I think I did an error in the program. could someone help me please ?

---

## [How do I use Java to get the contents of the 'default.installation' file?](https://forum.universal-robots.com/t/how-do-i-use-java-to-get-the-contents-of-the-default-installation-file/8814)

<div class="topic-metadata">

**Author:** [@tonyke](https://forum.universal-robots.com/u/tonyke)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 6:05pm UTC](https://forum.universal-robots.com/t/how-do-i-use-java-to-get-the-contents-of-the-default-installation-file/8814 "2020-09-17T18:05:08Z")

</div>

How do I use Java to get the contents of the ‘default.installation’ file? I want to get the values of baseAngle and tiltAngle.

---

## [How we can use servoj in urcap java](https://forum.universal-robots.com/t/how-we-can-use-servoj-in-urcap-java/8806)

<div class="topic-metadata">

**Author:** [@anon4832633](https://forum.universal-robots.com/u/anon4832633)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 1:35pm UTC](https://forum.universal-robots.com/t/how-we-can-use-servoj-in-urcap-java/8806 "2020-09-16T13:35:15Z")

</div>

I want to create trajectory for my application and i want to use the trajectory points with servoj command in urcap java environment? Is there any way to do it?

---

## [Update Variable](https://forum.universal-robots.com/t/update-variable/8788)

<div class="topic-metadata">

**Author:** [@anon6912891](https://forum.universal-robots.com/u/anon6912891)\
**Replies:** 1\
**Last updated:** [September 16, 2020, 12:55pm UTC](https://forum.universal-robots.com/t/update-variable/8788 "2020-09-16T12:55:30Z")

</div>

Please tell me. How to update a variable. I use generateScript, but is variable updated only when the program starts.

---

## [Set installation variable and create it if it does not exist](https://forum.universal-robots.com/t/set-installation-variable-and-create-it-if-it-does-not-exist/1641)

<div class="topic-metadata">

**Author:** [@anon42905246](https://forum.universal-robots.com/u/anon42905246)\
**Replies:** 3\
**Last updated:** [September 14, 2020, 9:27pm UTC](https://forum.universal-robots.com/t/set-installation-variable-and-create-it-if-it-does-not-exist/1641 "2020-09-14T21:27:19Z")

</div>

Continuing the discussion from Read variables set by assignment: Correct me, if my reasoning process is wrong. InstallationNode creates a section of code in script file, when the file is created or changed. My intentio…

---

## [Get blend radius from a Waypoint](https://forum.universal-robots.com/t/get-blend-radius-from-a-waypoint/8686)

<div class="topic-metadata">

**Author:** [@anon15159825](https://forum.universal-robots.com/u/anon15159825)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 11:18am UTC](https://forum.universal-robots.com/t/get-blend-radius-from-a-waypoint/8686 "2020-09-06T11:18:31Z")

</div>

Is it possible to get the blend radius of a waypoint in Java and save it?

[Previous page](https://forum.universal-robots.com/c/urcap-development/java/8.md?page=3)

[Next page](https://forum.universal-robots.com/c/urcap-development/java/8.md?page=5)
