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

RoboDK API Performance slow down

#1
I am using the RoboDK Python API.

When the Python program is running, RoboDK slows down a lot because of the robot cell. I do not want to hide the cell completely. What I want is to get a view like the one in the image with Python.


Attached Files Thumbnail(s)
Ekran görüntüsü 2025-01-10 164009.png   
#2
You can speed up the simulation and execution of your code by enabling automatic rendering. You can do so by calling the Render function. 

Example:
Code:
RDK.Render(always_render=False)
...
RDK.Render(always_render=True)
#3
This development does not work. The robot cell is visible while the robot is moving. If it is open, the program continues to slow down. Can you suggest a method for me to make the robot cell semi-visible?
#4
Does it work better if you minimise the RoboDK window?
Can you send us your RoboDK project and the script so we can test the performance drop you are experiencing?
#5
Unfortunately, I cannot send you my project because it is a special work. How can I get a semi-realistic form as I indicated in the image? Is there a method for this?


Attached Files Thumbnail(s)
Ekran görüntüsü 2025-01-13 104559.png   
#6
I don't think we can help you better without your sample RoboDK project file.

What do you mean by semi realistic form?
#7
(01-13-2025, 07:46 AM)yunuskr__ Wrote: Unfortunately, I cannot send you my project because it is a special work. How can I get a semi-realistic form as I indicated in the image? Is there a method for this?

In Robodk, when you turn off the visibility of an object and select that object while its visibility is off, you get a semi-transparent view. What I mean is that
#8
You can change the color of objects in RoboDK by selecting Tools-Change color, and when you change the color you can also set the transparency for that object.
#9
(01-13-2025, 12:13 PM)yunuskr__ Wrote:
(01-13-2025, 07:46 AM)yunuskr__ Wrote: Unfortunately, I cannot send you my project because it is a special work. How can I get a semi-realistic form as I indicated in the image? Is there a method for this?

In Robodk, when you turn off the visibility of an object and select that object while its visibility is off, you get a semi-transparent view. What I mean is that
I want to make the surfaces of my object with the ITEM_TYPE_OBJECT type different colors with the RoboDK API, is it possible?
#10
Yes, you can change the colors using the RoboDK API. You should use the setColor, Color, Recolor and setColorShape functions of our API.

You can find more information about changing the colors using the API here:
https://robodk.com/doc/en/PythonAPI/robo...m.setColor
  




Users browsing this thread:
1 Guest(s)