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

KUKA Joint Velocities

#1
Hello,

Kuka differentiates between translational and orientational velocities in a Continuous-Path (e.g. linear) motion. When using the setSpeed() command and the KUKA KRC2 postprocessor the joint speed input sets the rotational speed of the Continuous-Path Motion. Thus, from my understanding there is currently no predefined function to change the joint velocity for a Joint/ a PTP motion. Is this correct? What other way would I have to change the velocity of the PTP motions (KUKA command $VEL_AXIS[])? "RunInstruction("$VEL_AXIS[1]=50", INSTRUCTION_INSERT_CODE)"?

Thank you!
Marwin
#2
Your suggestion of using RunInstruction to insert code in your generated program is a valid option if you are using the API:

Code:
robot.RunInstruction("$VEL_AXIS[1]=50", INSTRUCTION_INSERT_CODE)


On the other hand, you can customize the post processor to generate the code you would like to have for joint speed changes. For example, to customize the behavior of setting the joints you could edit the KUKA KRC4 post processor by adding this function inside the main class:
Code:
def setSpeedJoints(self, speed_degs):
"""Changes the robot joint speed (in deg/s)"""
# Set the real joint speed:
for i in range(6):
self.addline('$VEL_AXIS[%i] = %.5f' % (i+1, speed_degs))

# Set the pose orientation
# self.addline('$VEL.ORI1 = %.5f' % speed_degs)
# self.addline('$VEL.ORI2 = %.5f' % speed_degs)

你会发现更多的信息和有用的例子ere:
//www.sinclairbody.com/doc/en/Post-Processor...ampleSpeed
#3
Great, thank you! :)




Users browsing this thread:
1 Guest(s)