Universal Robots+

Detect other installed URCap(s)

Dear All!

Can somebody suggest a solution for an URCap to detect what other URCap(s) are installed?

Thank You,
Varga Sándor.

1 Like

Hi,

all URCaps are stored in the hidden .urcaps folder of your root directory.
So a way to detect them on the java layer is simply using the File - .list()method on that directory😉

1 Like

Dear Birkholz!

Thank You, that is a possible solution.

We are working on a more elegant solution, the candidates are:

  1. Make some services from a bundle available for other bundle(s) - that should make possible the inter-bundle communication
  2. The bundle context contains information about the other installed bundle, so in Activator we can detect the names of the other installed bundles

We should use the possibilities of the OSGI (Apache Felix based) bundles.

Thank You,
Sándor.

Hi,

in this case,

  • bundleContext.getBundles()
  • bundleContext.getAllServiceReferences()

should fit your needs

Dear Birkholz!

Thank You!
I was thinking on something like this.

Brgds,
Sándor.