Error message when I try to use get_inverse_kin function

Hello,

Here is an extract from my program :



p1:=pose_add(center, p[x,y,0,Rx,Ry,0])
p2:=get_inverse_kin(p1)
servoj(p2,0.05,500)


When I run the program, I get an error message like this:

The left side of the expression was expecting the type “Pose” but found “List”

The expression in question is this one : p2: = get_inverse_kin(p1)

I dont understand why the fact that p2 is a list can be problematic.

There was pose assigned to global variable p2 earlier in the program.
Type can not be changed after it was assigned.