# Testing pre-installed samples

**URL:** https://forum.universal-robots.com/t/testing-pre-installed-samples/1820
**Category:** URCap Development
**Tags:** build-error
**Created:** [April 2, 2018, 6:46pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820 "2018-04-02T18:46:24Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Uffe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/uffe/32/705_2.png) [@Uffe](https://forum.universal-robots.com/u/Uffe)
#### Post date: [April 2, 2018, 6:46pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/1 "2018-04-02T18:46:24Z")

</div>

Hi,

I’m trying to learn URcaps using SDK-1.2.41 under VirtualBox looking into the samples.

HelloWorld, pickorplace is running and I got ManipulateIO running with help from Roman.

It get build failures when I try to test other pre-installed examples  
cyclecounter  
idletime  
coordinatemap  
ellipse  
localization  
mydaemon  
scriptfunction

Should it be possible to run these samples under SDK-1.2.41 ?

Uffe

---

<div class="post-metadata">

### Author: ![Uffe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/uffe/32/705_2.png) [@Uffe](https://forum.universal-robots.com/u/Uffe)
#### Post date: [April 3, 2018, 7:50am UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/2 "2018-04-03T07:50:15Z")

</div>

I’m working on an URcap for a dualgripper with some extra features so the the 2x2 tool I/O is not enough. I’m planning to make a simple serial communication to make the extra commands.

So far I have worked on the ManipulateIO and expanded it the so it now has a 6 state radio group so I’m in the beginning in understanding how this works.

Is the only documentation for the object structure to look in the files via maven or is there a searchable help file somewhere I have missed?

I need to update polyscope variables to communicate the status therefore I’m very interested in the cyclecounter and idletime example.

I want to run the serial communication from a daemon so therefore I’m very interested in the mydaemon example.

Has anyone luck running these three examples ? Should I try an older SDK? maybe it has worked before.

Any good advice appreciated.

Uffe

---

<div class="post-metadata">

### Author: ![anon5323774](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@anon5323774](https://forum.universal-robots.com/u/anon5323774)
#### Post date: [April 3, 2018, 2:58pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/3 "2018-04-03T14:58:52Z")

</div>

I can run those examples, what errors are you getting?

---

<div class="post-metadata">

### Author: ![Uffe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/uffe/32/705_2.png) [@Uffe](https://forum.universal-robots.com/u/Uffe)
#### Post date: [April 4, 2018, 5:34am UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/4 "2018-04-04T05:34:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/9e33897f56951dfc67fafbc2e2fb3b01455a0c55.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/bc5c5b0b75ab731f9d0c9190b6fa64e5763de1d3.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/2d8077330f90e61590ef5caff437d95b7f92a272.png)

---

<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: [April 4, 2018, 6:55am UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/5 "2018-04-04T06:55:26Z")

</div>

What terminal command did you execute, when you received this error?

---

<div class="post-metadata">

### Author: ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)
#### Post date: [April 4, 2018, 7:06am UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/6 "2018-04-04T07:06:11Z")

</div>

```
cp: cannot create regular file '/.urcaps/com.ur...`

```

That is your error right there. I suppose you are trying `mvn install -P ursim` ?  
Then you need to go to `pom.xml` and input path to your ursim installation.

```
<!--Install path for the UR Sim-->
<ursim.home></ursim.home> # this is normally in the file
<ursim.home>/home/ur/ursim-current</ursim.home> # this is what you have to put in (or different directory if you keep it somewher else)
```

---

<div class="post-metadata">

### Author: ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)
#### Post date: [April 4, 2018, 7:23am UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/7 "2018-04-04T07:23:40Z")

</div>

Looks like @jbm is back from Easter holiday. 😃

Also for future reference: when you mark text in terminal, it is automatically copied. You can paste it with middle mouse button. It is separate clipboard than the one you use with `ctrl+c`.

---

<div class="post-metadata">

### Author: ![roman.reiner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/roman.reiner/32/1294_2.png) [@roman.reiner](https://forum.universal-robots.com/u/roman.reiner)
#### Post date: [April 4, 2018, 7:39pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/8 "2018-04-04T19:39:36Z")

</div>

If you following my solution in your other post you can modify a few sections of the pom.xml file to fix this build error. I believe this is the same error I resolved in the other solution.

> [@How do I copy samples into VMvare?](https://forum.universal-robots.com/t/how-do-i-copy-samples-into-vmvare/1787/2):
>
> Alright I got this to work on my VM Virtual Box and I will walk you through the steps to get you started. Decompress the file on your OS. If you haven’t already on your virutal box you want to connect your file system from your virtual box to your OS. This will make things much easier in the transferring process from your OS to the virtual box. There are plenty of tutorials out there and here is one I found really quickly for you: [linux - How to mount a VirtualBox shared folder? - Server Fault](https://serverfault.com/questions/674974/how-to-mount-a-virtualbox-shared-folder) …

---

<div class="post-metadata">

### Author: ![Uffe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/uffe/32/705_2.png) [@Uffe](https://forum.universal-robots.com/u/Uffe)
#### Post date: [April 5, 2018, 1:54pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/9 "2018-04-05T13:54:25Z")

</div>

Hi dozminkowski,

Thank you for draw attention to missing install path.

It worked for the cyclyclecounter but unfortunately not for mydaemon.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/39e98e01480a0c317c8011890aa80e65fdba72a0.png)

Uffe

---

<div class="post-metadata">

### Author: ![Uffe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/uffe/32/705_2.png) [@Uffe](https://forum.universal-robots.com/u/Uffe)
#### Post date: [April 5, 2018, 1:56pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/10 "2018-04-05T13:56:32Z")

</div>

Hi Roman,

Can you list what sections to to modify? When I compare the files there are many differences.

Uffe

---

<div class="post-metadata">

### Author: ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)
#### Post date: [April 5, 2018, 2:57pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/11 "2018-04-05T14:57:57Z")

</div>

This time it failed while compiling Daemon. Looks like you’re trying to build C++ daemon. I’ve never done that. Maybe somebody else can help you. I only created Python daemons.

---

<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: [April 6, 2018, 6:51am UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/12 "2018-04-06T06:51:31Z")

</div>

The MyDaemon example with the C++ daemon does not run in the Starter Package, as the cross compiler requires 64-bit intel, and the VM is 32-bit.

---

<div class="post-metadata">

### Author: ![Savoia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/savoia/32/4844_2.png) [@Savoia](https://forum.universal-robots.com/u/Savoia)
#### Post date: [January 19, 2021, 6:42pm UTC](https://forum.universal-robots.com/t/testing-pre-installed-samples/1820/13 "2021-01-19T18:42:32Z")

</div>


