# Add waypoints without moving across them

**URL:** <https://forum.universal-robots.com/t/add-waypoints-without-moving-across-them/19886>\
**Category:** URCap Development\
**Created:** [March 15, 2022, 11:37am UTC](https://forum.universal-robots.com/t/add-waypoints-without-moving-across-them/19886 "2022-03-15T11:37:10Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![anon84921795](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon84921795](https://forum.universal-robots.com/u/anon84921795)\
**Post date:** [March 25, 2022, 4:31pm UTC](https://forum.universal-robots.com/t/add-waypoints-without-moving-across-them/19886/15 "2022-03-25T16:31:47Z")

</div>

Hi!

Thank you for your exhaustive comment!

I have a question related to this topic: suppose to have the same setup of the previous case. I have a main custom instruction 1 inside which i have a movep and two custom instructions.  
In this situation, i want my custom instruction 2 to be executed after the movements inside the move p instruction.  
This custom instruction 2 will perform some movements base on the previous points inside the move. In order to achieve this, i need to pass a list of poses (the ones inside the move p) to the custom instrutcion 2. (this pose list is dynamic).

custom instruction 1

- move p  
– way 1  
– way 2  
– way N
- custom Instruction 2
- custom instruction 3

The problem with this, i that i cannot find a way in order to build up this array of poses. I had a look at this [WaypointNode getPose()](https://forum.universal-robots.com/t/waypointnode-getpose/1492) example but unfortunately i could not make it work.

Do you have any hints?

---

_[View the full topic](https://forum.universal-robots.com/t/add-waypoints-without-moving-across-them/19886)._
