Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KUKA Robot Move Linear Error
Hello everyone, 
I'm having problems with the MoveL function, it doesn't work in real life at all, in the simulation it works fine, but in the real robot the movement is somehow erratic, and the simulation shows some really weird movements.

ref = refRobot2
   home = RDK.Item("KR210-2 - Home").Pose()
   robot2.MoveL(home * transl(100,0,-300))
   robot2.MoveL(home * transl(100, 100, -300))

I attach a video of this weird movement...

I would like to know, if this is a RoboDK Issue, robot, postprocessor?
It looks like the target is a joint target but you are moving using a linear movement and Cartesian coordinates.

If you want to use Cartesian coordinates I would recommend you to first set the reference frame of that target (target's parent item). Something like:

home_target = RDK.Item("KR210-2 - Home")
ref = home_target.Parent()
home_pose = home_target.Pose()
robot2.MoveL(home * transl(100,0,-300))

If you can provide the RDK file we can better look into this issue.
The target is actually a Cartesian Target, and I'm doing practically the same thing that you told me...

When I tried to isolate the script in a new file I don't get the same error... this has happened to me before with this problem, sometimes it works and sometimes is not working at all... but I can't see any difference in the targets, script or robot... what can be wrong?

Attached Files
.rdk   Test.rdk (Size: 734.66 KB / Downloads: 3)

Users browsing this thread:
1 Guest(s)