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

Failed to retrieve the robot by name

#1

.txt   from robodk.robolink import.txt (Size: 715 bytes / Downloads: 14)
hi Sir , 
  Copy example from RoboDK API as attached onto PyCharm, then run the program 

Weird! RoboDK has been opened successfully but without targeted Robot . Empty!

May I have your advise

thanks
John
#2
Hi John,

Could you provide more information on what you are trying to accomplish, and also send us your .RDK project?
Best regards,

Jonathan Lambert
Application Specialist
#3

.png   robodk03.png (Size: 183.92 KB / Downloads: 9)

.png   robodk01.png (Size: 190.48 KB / Downloads: 9)

.png   robodk02.png (Size: 240.75 KB / Downloads: 7)
(06-27-2025, 04:39 PM)Jonathan L Wrote: Hi John,

Could you provide more information on what you are trying to accomplish, and also send us your .RDK project?

hi Jonathan , 
  I think that I missunderstood the way to manipulate the robot in RoboDK. I just copied sample codes and paste on Python then executed it without open up RoboDK

I've learned that the right way is open up RoboDK and select ABB Robot manually, and add Python program in RoboDK then execute it

Somehow I've encountered errors as attached 

thanks,
John


.rdk   New Station (1).rdk (Size: 413.79 KB / Downloads: 9)
(06-27-2025, 04:39 PM)Jonathan L Wrote: Hi John,

Could you provide more information on what you are trying to accomplish, and also send us your .RDK project?
#4
You should properly use the full name of your robot in the RDK.Item command.

You can also use the ItemUserPick to popup a message to allow the user to choose the right robot:
Code:
robot = RDK.ItemUserPick('Choose a robot', ITEM_TYPE_ROBOT)
You can also not specify the name and specify the robot item to take the first available robot:
Code:
robot = RDK.Item('', ITEM_TYPE_ROBOT)
#5
Thanks
  




Users browsing this thread:
1 Guest(s)