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

改变默认的robolink RDK路径

#1
Hi, running Ubuntu 20, I understand that when we call Robolink() it will attempt to launch RDK if it is not already running. I have installed RDK in /bin/RoboDK but robolink tries looking in /home/myuser/RoboDK/bin/RoboDK which results in "No such file or directory".

How can I change the default RDK path at a system level, for all users so that robolink launches RDK from /bin/RoboDK?

EDIT: Just realized I should have posted this in the RDK API forum. Please move it if possible.
#2
By default, Robolink will use "~/RoboDK/bin/RoboDK" on Linux.
You will have to initiate the API using Robolink(robodk_path= "/home/myuser/RoboDK/bin/RoboDK") as we do not have an environment variable you can change externally.
Alternatively, you can edit the path return in robolink.py by getPathRoboDK.
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.
#3
So I would need to hardcode the correct path in robolink.py
Great! Thank you.




Users browsing this thread:
1 Guest(s)