# CircleMoveNode creates static ViaPoint andEndPoint

**URL:** <https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233>\
**Category:** URCaps SDK\
**Created:** [July 3, 2018, 1:01pm UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233 "2018-07-03T13:01:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 3, 2018, 1:01pm UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/1 "2018-07-03T13:01:34Z")

</div>

Hi,

when i create a CircleMoveNode through the URCaps API it generates a Waypoint, a ViaPoint and EndPoint. The Problem is, the Via- und EndPoint do not have a Waypoint number and when i define those Waypoints Configuration it assigns the Configuration to ALL Via- and EndPoints of the CircleMoveNodes in the whole Robot Program!

is there ANY way to change the Waypoint Names or give them an unambigous object reference?

otherwise it is not possible to define a CircleMoveNode inside a URCap generated Program with more than one circle moves

---

<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:** [July 4, 2018, 7:05am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/2 "2018-07-04T07:05:39Z")

</div>

Would it be a possibility for you to delete the two auto-created child Waypoints of the Circle Move (Via and End), and insert your own two new Waypoints?

When waypoints have the same name, they are automatically linked (aka Linked Waypoints), which means they share the position.

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 4, 2018, 7:25am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/3 "2018-07-04T07:25:16Z")

</div>

this wont be an option because the URCap would be pointless if our customers need to modify the waypoints in that strange way ☹

---

<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:** [July 4, 2018, 7:52am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/4 "2018-07-04T07:52:50Z")

</div>

The only difference would be, that the waypoints names would be “Waypoint\_x” instead of “ViaPoint\_x”, but you could do it all from the parent node, that inserts the CircleMove, removed the default waypoints, and re-inserts your own two waypoints including individual locations.

Not viable?

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 4, 2018, 8:16am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/5 "2018-07-04T08:16:54Z")

</div>

i already tried to remove and add new waypoints under the CircleMove Node but it is not possible:  
in PolyScope it throws s a message “This section cannot be altered” and through the API it just doesnt add or remove the waypoints

The Problem is shown below:  
 ![uivsapi](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/083d1a9a04ea4461577ffd9ba28432d2c3d99d34.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:** [July 4, 2018, 8:37am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/6 "2018-07-04T08:37:43Z")

</div>

Can you share your code used to build the sub-tree and assign a position to the end-point?

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 4, 2018, 9:55am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/7 "2018-07-04T09:55:11Z")

</div>

yes 🙂

> Adding CircleMoveNode:

```
                        try {
                            arcCPointsMoveTreeNode = subTreeNode.addChild(addMoveNode(true));
                            CircleMoveNode circle = programNodeFactory.createCircleMoveNode();
                            arcCPointsMoveTreeNode.addChild(circle);
                            //remove Auto inserted Circle Move Waypoint
                            arcCPointsMoveTreeNode.removeChild(arcCPointsMoveTreeNode.getChildren().get(0));
                            addCircleWaypoints(arcCPointsMoveTreeNode, pose, jointPositions,i);
                        } catch (TreeStructureException e) {
                            e.getMessage();
                        }

```

> Function addCircleWaypoints

```
private void addCircleWaypoints(TreeNode moveTreeNode, Pose pose, JointPositions jointPositions, int circleMoveChildPos) {
    //viaPoint
    WaypointNode viaWaypointNode = (WaypointNode) moveTreeNode.getChildren().get(circleMoveChildPos).getChildren().get(0).getProgramNode();
    waypointNodeConfigFactory = viaWaypointNode.getConfigFactory();
    WaypointNodeConfig newViaWaypointNodeConfig = createWaypointConfig(tmpViaPose, tmpViaJoints);
    viaWaypointNode.setConfig(newViaWaypointNodeConfig);

    //targetPoint
    WaypointNode targetWaypointNode = (WaypointNode) moveTreeNode.getChildren().get(circleMoveChildPos).getChildren().get(1).getProgramNode();
    waypointNodeConfigFactory = targetWaypointNode.getConfigFactory();
    WaypointNodeConfig newTargetWaypointNodeConfig = createWaypointConfig(pose, jointPositions);
    targetWaypointNode.setConfig(newTargetWaypointNodeConfig);
}

```

i was confused that adding another CircleMoveNode without WaypointNodeConfig already had defined viaPoint and endPoint - this only occurs because the created waypoint Nodes in the second CircleMoveNode have the same names. ☹

---

<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:** [July 4, 2018, 11:42am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/8 "2018-07-04T11:42:57Z")

</div>

Thanks,  
We will investigate!

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 19, 2018, 9:15am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/9 "2018-07-19T09:15:51Z")

</div>

any news about this ? 🙂

---

<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:** [July 20, 2018, 7:34am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/10 "2018-07-20T07:34:23Z")

</div>

We have verified the behavior, and are working on a fix for this issue.

---

<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:** [September 25, 2018, 8:50am UTC](https://forum.universal-robots.com/t/circlemovenode-creates-static-viapoint-andendpoint/2233/11 "2018-09-25T08:50:58Z")

</div>

This bug is fixed in PolyScope 3.7 and 5.1.
