Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get & set the linked robot for a program?
#1
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,

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

Example:
Code:
robot = program.getLink(ITEM_TYPE_ROBOT)
#3
Cool, that's what I was looking for!
  




Users browsing this thread:
1 Guest(s)