I’m trying to develop a custom HMI to control the robot cycle from a simple GUI, and to do so i’m trying to use the Toolbar exemple from github (GitHub - UniversalRobots/MyToolbar: URCap sample that mainly demonstrates the principle of SwingToolbarService and SwingToolbarContribution).
I managed to compile the project with maven, then I activated the urcaps in the simulator and reboot it as requested.
But when the simulator start again, i got this error (see the picture attached) and nothing is related with the sample project itself, it seems that something else is wrong.
Thanks you in advance for your help,
Have a look at this post. Somebody already stumbled upon this issue and found the cause.
Thanks for your answer.
The problem is that this is the default project, I did not change anything in the code. Here is the syntax of the Service.java
And the default Icon is located in “/src/main/ressources/icons” (even with the complete path in the code, the error occurs.
Finally, even when i remove the URCap from “/home/ur/ursim/ursim-22.214.171.124288/programs.UR5” and restart the simulator, I’ve got the same error and it crashes.
Hi @clement.leveque ,
Removing the URCap from the programs folder does not uninstall the URCap, you should use the PolyScope interface to do this.
Here are some steps I recommend you follow.
- Manually uninstall the My Toolbar URCap through the PolyScope GUI.
- Download a clean copy of the repository.
- Open the pom.xml file
- Modify the <ursim.home> path to point to a version of ursim you have installed.
It should look something like this: <ursim.home>/home/ur/ursim/ursim-126.96.36.1991232/</ursim.home>
- Open a terminal inside the com.ur.urcap.examples.mytoolbar folder.
- Run this command: mvn install -P ursim
These steps should be sufficient to have a working URCap inside URSim.