Add waypoints without moving across them

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() example but unfortunately i could not make it work.

Do you have any hints?