05-19-2022, 12:09 PM
Hi Michael,
What are you trying to do exactly?
Only Python scripts can be called with a Program Call Instruction from a RoboDK Program.
Calling a RoboDK Plug-In from the Python script should not take longer than a few milliseconds.
You stated that you need blocking function calls, so the following might not apply: you can also use event-based code with Plug-Ins to update the robot poses on each render for instance.
Seehttps://github.com/RoboDK/Plug-In-Interf...odk.h#L212.
What are you trying to do exactly?
Only Python scripts can be called with a Program Call Instruction from a RoboDK Program.
Calling a RoboDK Plug-In from the Python script should not take longer than a few milliseconds.
Code:
from robolink import *
RDK = Robolink()
resp = RDK.PluginCommand("MyPlugin", plugin_command='DoSomething', value='WithThisValue')
print(resp)
You stated that you need blocking function calls, so the following might not apply: you can also use event-based code with Plug-Ins to update the robot poses on each render for instance.
Seehttps://github.com/RoboDK/Plug-In-Interf...odk.h#L212.
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting our2022世界杯32强赛程表时间 .
Find useful information about RoboDK by visiting our2022世界杯32强赛程表时间 .