RoboDK Forum
常e default RDK path for robolink- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: Change default RDK path for robolink (/Thread-Change-default-RDK-path-for-robolink)



常e default RDK path for robolink-dunderMethods-11-28-2022

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.


RE: Change default RDK path for robolink-Sam-11-28-2022

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.


RE: Change default RDK path for robolink-dunderMethods-11-28-2022

So I would need to hardcode the correct path in robolink.py
Great! Thank you.