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

RoboDK crash when click generate robot program

#1
When I want to generate the robot code running in controller based on a imported python program. as shown in attached Fig 1.  RoboDK will crash. Note that my python prog can running sommthly by right clicking Run python Script in RoboDK software environment

After I adjusting my python program and regenerating robot code many times, I find that RoboDK will crash once involved points in my python file more than about four hundreds.

However, this crash has never happened before, even though my Python program involves more than a thousand points. It can geneate the robot code every time as long as I activate my license

The changes mainly involves following two things:
  • First is that I renew my license to two years
  • Second is that I checked the Controller kinematics as the default kinematics. However, I tried uncheck , still not work.
Also. I tried to update my RoboDK software to the newest version or reinstall it. still not work.

Please help me to solve the BUG. This function of robot code generation is very very important to my PhD thesis.

Looking forward to your solutions!


Attached Files Thumbnail(s)
   

.rdk   UR5 Sim.rdk (Size: 2.19 MB / Downloads: 18)
.py   Prog0_UR5.py (Size: 2.29 KB / Downloads: 18)
#2
You are not using the setPos and transl functions properly. You should apply the following edits:
  1. setPos accepts a 3D list. Example: target_ref.setPos([355.48, -487.43, 53.20])
  2. transl requires 3 parameters. Example: transl(1, 0, 0)
The crash still happens. We'll try to fix it in a timely manner. 

However, the crash happens when you try to generate programs while moving to a non rechable target. I would recommend you first to validate what is the correct movement you can do while simulating, then, adjust your program so all targets are reachable.
#3
(02-02-2024, 10:52 AM)Li Chenglin Wrote: When I want to generate the robot code running in controller based on a imported python program. as shown in attached Fig 1.  RoboDK will crash. Note that my python prog can running sommthly by right clicking Run python Script in RoboDK software environment
After I adjusting my python program and regenerating robot code many times, I find that RoboDK will crash once involved points in my python file more than about four hundreds.
However, this crash has never happened before, even though my Python program involves more than a thousand points. It can geneate the robot code every time as long as I activate my license
The changes mainly involves following two things:
  • First is that I renew my license to two years
  • Second is that I checked the Controller kinematics as the default kinematics. However, I tried uncheck , still not work.
Also. I tried to update my RoboDK software to the newest version or reinstall it. still not work.
Please help me to solve the BUG. This function of robot code generation is very very important to my PhD thesis.
Looking forward to your solutions!

(02-02-2024, 12:29 PM)Albert Wrote: You are not using the setPos and transl functions properly. You should apply the following edits:
  1. setPos accepts a 3D list. Example: target_ref.setPos([355.48, -487.43, 53.20])
  2. transl requires 3 parameters. Example: transl(1, 0, 0)
The crash still happens. We'll try to fix it in a timely manner. 
However, the crash happens when you try to generate programs while moving to a non rechable target. I would recommend you first to validate what is the correct movement you can do while simulating, then, adjust your program so all targets are reachable.

Sorry, I ignored the reachability in Prog0_UR5 because I thought it was simple enough to demonstrate the problem. I created it specifically to showcase the crash issue while disregarding the reachability problem. 

For my own program, please find attached Prog0.py. I have simulated it multiple times and ensured that all path points are reachable. However, roboDK still crashs when involved points more than 250.

(02-02-2024, 12:29 PM)Albert Wrote: You are not using the setPos and transl functions properly. You should apply the following edits:
  1. setPos accepts a 3D list. Example: target_ref.setPos([355.48, -487.43, 53.20])
  2. transl requires 3 parameters. Example: transl(1, 0, 0)
The crash still happens. We'll try to fix it in a timely manner. 

However, the crash happens when you try to generate programs while moving to a non rechable target. I would recommend you first to validate what is the correct movement you can do while simulating, then, adjust your program so all targets are reachable.

Besides, I also followed your advices to revise the Prog0_UR5.py. as shown in attached image. I also did a simulation to ensure that all points are reachable. The robot successfully completed the intended path as shown in attached II. 

Unfortunately, When I use the generate robot code function, the roboDK will still be stuck for a moment and then crash. 

Please help to solve these problems. Thank your very much!


Attached Files Thumbnail(s)
   
Image(s)
   

.py   Prog0.py (Size: 4.53 KB / Downloads: 14)
.rdk   UR5 Sim.rdk (Size: 2.19 MB / Downloads: 15)
.rdk   UR5 Sim_with_Prog0_UR5.rdk (Size: 2.19 MB / Downloads: 19)
.py   Prog0_UR5.py (Size: 2.23 KB / Downloads: 16)
#4
Hi Albert,

Kindly find my forementioned problems and files to help me to solve the crash bug. T_T

This function is very important to me to generate my robot code! Thanks very much
#5
Thank you for such a detailed report of this bug. We'll be fixing it in the next few days, I'll keep you posted.
#6
Hi Albert and Li,

I noticed your post and I'm curious because we are experiencing a similar issue right now. We recently got a new Alienware laptop with a core i9 processor (13rd gen) and an RTX4070 graphics card to use with UR10.

I tried running an old RoboDK file on it, and the simulation worked fine. However, RoboDK shuts down after trying to generate the program. This same file ran smoothly on two older Alienware laptops with i9 (12th gen)processors and RTX3080 graphics cards.

After reading other posts, I suspect the problem might be related to the graphics card driver. I've already attempted to address it by downgrading RoboDK from version 5.6.8 to 5.6.3 to match the other laptops. I also installed the latest Nvidia RTX4070 driver, but the issue persists.

Please keep us updated if you find a solution.
Best regards,

Tran Dang
University of Technology Sydney
#7
Can you share the RDK project file and the steps to reproduce this bug? I believe your crash is not related to the same crash brought up earlier in this thread.
#8
Hi Albert,
Kindly enquiry the process of fixing crash bug
  




Users browsing this thread:
1 Guest(s)