Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to get & set the linked robot for a program?

There are multiple robots in my station, and I found I can set the desired linked robot for a program using the setRobot() command. But using which command can I *get* which robot the program is linked to?

Best regards,

You can use the getLink call on your program and specify the robot type to check what robot a program is linked to. 

robot = program.getLink(ITEM_TYPE_ROBOT)
Cool, that's what I was looking for!

Users browsing this thread:
1 Guest(s)