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

Call Plugin command from robot program

#4
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.

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强赛程表时间 .


Messages In This Thread
从机器人RE:调用插件命令program - bySam- 05-18-2022, 03:15 PM
从机器人RE:调用插件命令program - bySam- 05-19-2022, 12:09 PM



Users browsing this thread:
1 Guest(s)