# Child node function call

**URL:** https://forum.universal-robots.com/t/child-node-function-call/1044
**Category:** URCaps SDK
**Created:** [August 8, 2017, 1:20pm UTC](https://forum.universal-robots.com/t/child-node-function-call/1044 "2017-08-08T13:20:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anon81172153](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon81172153](https://forum.universal-robots.com/u/anon81172153)
#### Post date: [August 8, 2017, 1:20pm UTC](https://forum.universal-robots.com/t/child-node-function-call/1044/1 "2017-08-08T13:20:16Z")

</div>

Hi,

So my question is basically is there a way to call a child node’s function from the parent node.

In the URCapApi there’s a way to get a list of the children of a node. There’s also a function called getProgramNode() but that returns an interface type “ProgramNode” which has no functions. There’s also an interface called URCapProgramNode but that’s also empty.  
Is there any way to cast this ProgramNode into something useful?  
If we could somehow get the node contribution object we could call its public functions.  
This would allow us to use nodes only to store data, like a waypoint, or to set up a node’s state from the parent, which would be more convenient in some cases.

Thank you!

---

<div class="post-metadata">

### Author: ![ocohen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/ocohen/32/2067_2.png) [@ocohen](https://forum.universal-robots.com/u/ocohen)
#### Post date: [April 20, 2018, 4:55pm UTC](https://forum.universal-robots.com/t/child-node-function-call/1044/2 "2018-04-20T16:55:07Z")

</div>

I second this question.

---

<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 23, 2018, 12:38pm UTC](https://forum.universal-robots.com/t/child-node-function-call/1044/3 "2018-04-23T12:38:24Z")

</div>

Are you referring to the functionality shown in e.g. the Ellipse example in the SDK?  
Here a URCap Parent node uses the structure builder to populate the sub-tree, and then uses the Node Configurator to configure these nodes.

Maybe the document in the SDK “program\_node\_configuration” could help as well.
