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

Drawing with robot example error

#1
Hi,
I need to use the robot paint example for a project and it seems to give me an error that I cant figure out.
The Demo scene with the ABB robot works fine, I can generate program, no issues.
When I change the robot to an Kuka KRC4 robot, the demo runs fine in RDK (it draws the picture), but when I export the robot program I get this error:

Failed to generate program "Robotpaint" using the Post Processor "KUKA_KRC4"
Post processor path:C:/RoboDK/Posts/KUKA_KRC4.py
Traceback (most recent call last):
File "C:/Users/alle/AppData/Local/Temp/PostRobotpaint.py", line 1547, in
make_program()
File "C:/Users/alle/AppData/Local/Temp/PostRobotpaint.py", line 1542, in make_program
r.MoveL(None,[0,-90,90,0,90,0],None)
File "C:\RoboDK\Posts\KUKA_KRC2.py", line 569, in MoveL
self.addline('LIN {' + self.pose_2_str_ext(pose,joints) + str_config + '}' + self.C_DIS)
File "C:\RoboDK\Posts\KUKA_KRC2.py", line 207, in pose_2_str_ext
return self.pose_2_str(pose)
File "C:\RoboDK\Posts\KUKA_KRC2.py", line 198, in pose_2_str
raise Exception("Unable to create a Linear movement (LIN) using a Joint Target. Use a Cartesian target instead.")
Exception: Unable to create a Linear movement (LIN) using a Joint Target. Use a Cartesian target instead.


#2
Hi Kloper,

Quote: Exception: Unable to create a Linear movement (LIN) using a Joint Target. Use a Cartesian target instead.


Did you try using Cartesian Targets instead of Joint Targets for your linear moves?

Jeremy
#3
(10-01-2020, 04:51 AM)Jeremy Wrote:Hi Kloper,

Quote: Exception: Unable to create a Linear movement (LIN) using a Joint Target. Use a Cartesian target instead.


Did you try using Cartesian Targets instead of Joint Targets for your linear moves?

Jeremy

Hi Jeremy,
thanks for the answer!!
How would I do that?
From what I understand, the python script (robotPaint script) is generating the KRC4 program.

Romano
#4
(10-01-2020, 08:11 AM)Kloper Wrote:
(10-01-2020, 04:51 AM)Jeremy Wrote:Hi Kloper,

Quote: Exception: Unable to create a Linear movement (LIN) using a Joint Target. Use a Cartesian target instead.


Did you try using Cartesian Targets instead of Joint Targets for your linear moves?

Jeremy

Hi Jeremy,
thanks for the answer!!
How would I do that?
From what I understand, the python script (robotPaint script) is generating the KRC4 program.

Romano

I think I found the issue!
The last command in the Robot Paint script was a moveL to home. When it change that to MoveJ it generates the KRC program just fine. Not sure if thats what you ment (I am not very familiar with RDK) but it seems to work.

Romano
#5
Hi Kloper,

This is exactly what I meant by that.
Good job figuring out your issue.

Jeremy




Users browsing this thread:
1 Guest(s)