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

如何获取和设置有关机器人的程序?

#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 thegetLinkcall 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)

    Baidu
    map