I have a UR10e with a profile sensor attached to its tool flange. The sensor is trying to detect an edge in the Y and Z axes. I am trying to store multiple Cartesian positions (including X, RX, RY, and RZ) in a buffer so that the robot can move to them later. These values are gathered from the robot. I am having trouble defining the buffer to store the values. I have tried several different methods (see images below), but I can’t seem to get it to work.
Looks like you’ll want to use the make_list() function as described in the Script Manual, section 4.2 - List.
I haven’t used that function, so I’m not sure of the exact syntax needed to make a list of poses, but it appears fairly straightforward if you read through the examples.
@dpeva is correct. The Lists and Structs were introduced not that long ago. It looks like you’re trying to do some form of Python in your examples. You’ll want to stick with URScript as they are not 1 to 1. For example, there’s no for loops in URScript (that I’m aware of)