RoboDK / RoboDK-API

Implementation of the RoboDK API in different programming languages. The RoboDK API allows simulating and programming any industrial robot (offline and online)
https://robodk.com/doc/en/RoboDK-API.html
Other
237 stars 117 forks source link

Using RoboDK Docker image #118

Closed rwuthric closed 1 year ago

rwuthric commented 1 year ago

The How to use this image documentation of the RoboDK docker image says that connection to RoboDK within the image should be done as

RDK = robolink.Robolink(port=20501)

That doesnt seem correct to me. I had to use

RDK = robolink.Robolink(robodk_ip='127.0.0.1',
                        port=20501,
                        robodk_path='/home/user/RoboDK/bin/RoboDK')

Is this a bug in the documentation or on my side?

sambertrdk commented 1 year ago

If you bind the host port with the Docker container, it should work as intended: docker run -dp 20501:20501 -e RDK_PORT=20501 -e RDK_LIC=XXXX-XXXX-... -t robodk

rwuthric commented 1 year ago

Correct. The main difference compared to the documentation if the usage of robodk_path='/home/user/RoboDK/bin/RoboDK'. Otherwise indeed works as documented.

sambertrdk commented 1 year ago

I will update the Docker Hub read me to include the port bind. Thank you!