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

KUKA Robot Move Linear Error

#4
You should usesetPoseTool() before you try any movements. This will update the tool pose on the robot. This is important because you may have used another tool in a previous program and the robot driver remembers the last tool you set.

I recommend you to try the following:


Code:
from robolink import * # RoboDK API
from robodk import * # Robot toolbox
RDK = Robolink()

ref = RDK.Item("KUKA KR 210 L150-2 Base")
robot = RDK.Item("KUKA KR 210 L150-2")
home = RDK.Item("Target").Pose()

# Send commands to the robot (not just the simulator)
RDK.setRunMode(RUNMODE_RUN_ROBOT)

# Use the target reference
#robot.setPoseFrame(ref)
# This is more robust (in case you place the target on a reference frame)
robot.setPoseFrame(home.Parent()

# Set the robot tool
# This is important to reset any other tools that you may have used before
robot.setPoseTool (robot.PoseTool())

# Move to one location
robot.MoveL(home * transl(100,0,-300))

pause(1)

# Move to another location
robot.MoveL(home * transl(100, 100, -300))


Messages In This Thread
KUKA Robot Move Linear Error - byNox- 02-12-2019, 09:44 AM
RE: KUKA Robot Move Linear Error - byAlbert- 02-13-2019, 01:05 PM
RE: KUKA Robot Move Linear Error - byNox- 02-15-2019, 08:08 AM
RE: KUKA Robot Move Linear Error - byAlbert- 02-19-2019, 12:02 PM



Users browsing this thread:
1 Guest(s)