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

passing ethernet messages to the simulator?

#1
currently we have a ur10 and we are writing our software in python and passing commands over ethernet to the robot. this works but debugging is sometimes costly in time.

we're considering purchasing or trialing this software and wondering if we can use the simulator in this way: keep our code outside of the simulator and only pass messages to the simulator?

is this possible and is there a section of user docs you could point me to?


or there is a different way to think about this that we are missing?


thanks,
Dan
#2
Yes, this is possible. You can run your Python code externally. You just need to install the RoboDK API for Python using:

pip install robodk

More information about the RoboDK API for Python here:
https://pypi.org/project/robodk/

You can also start RoboDK in the background passing the commands /NOSPLASH /HIDDEN /NOSHOW or using robodk.HideRoboDK(). Example:

# Load the RoboDK module
from robolink import *

# Connect to the simulator (it starts RoboDK if it is not running)
RDK = Robolink()

# Hide RoboDK window
RDK.HideRoboDK()

# Example to show RoboDK window
RDK.ShowRoboDK()

...

# Close RoboDK
RDK.CloseRoboDK()

More information about the available commands to interact with RoboDK from Python here:
https://robodk.com/doc/en/PythonAPI/robo...HideRoboDK
  




Users browsing this thread:
1 Guest(s)