I have another bug In
pi = pose_ref
pi.setPos(data[i])
data which are inside they have csv format and the path input is this one
path_file = r'C:/Users/giahn/OneDrive/Έγγραφα/Σχολή/ΔΙΠΛΩΜΑ/main/Test/program.csv'
data = LoadList(path_file)
program_name = getFileName(path_file)
I will send you the code If you want to see more details