Home Programming


Left ArrowBack to discussions page
JstewartJstewart Posts: 62 Apprentice
I want to use the Y value from the variables "POINT_1 & POINT_2" and then add them together and add store the value into another variable, but I do not know if this is possible. thanks 


  • jelmsjelms Posts: 34 Handy
    `get_actual_tcp_pose()` returns a pose. The Y component in the base coordinates in the is index 1 (0-based indices).

    So you could do:
    pallet_len:=(point_1[1] - point_2[1])*1000
    Or maybe better
    point_diff:=pose_sub(point_1, point_2)
    This gives a little more info for debug if you need to look at `point_diff`
  • JstewartJstewart Posts: 62 Apprentice
    thanks for the reply @jelms, that helps out alot. I realized what i was doing wrong after i posted this, I was using "( )" instead of "[ ]". thank you! 
Sign In or Register to comment.
Left ArrowBack to discussions page