Tom,
The thing you have to know about UR is they have static typing including list length. The first time you define a list you will need to define the length you want it to be with the initial assignment. Then to access elements within the list you will use bracket notation to either retrieve or set a list element
local myList = [0,0,0,0]
myList[2] = 3 #myList now equals [0,0,3,0]
local listLength =length(myList) #4
A pose is a special type of list and is used for storing a 6D pose of the robot position in x,y,z and rx,ry,rz it looks like p[0,0,0,0,0,0]. They can only contain 6 elements, position in meters and rotations in radians. You can access the elements in a pose the same way you would in a list.
How do I add elements to a list dynamically? (.add / .apend / ...), how does the Pose class look like? etc etc etc
I'm looking forward to your replies since I am really stuck right now.