Home Programming

Discussion

Left ArrowBack to discussions page
JstewartJstewart Posts: 59 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 







Comments

  • jelmsjelms Posts: 33 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)
    pallet_len:=point_diff[1]
    This gives a little more info for debug if you need to look at `point_diff`
  • JstewartJstewart Posts: 59 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