RoboDK Forum
KUKA Joint Velocities可打印版本

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: KUKA Joint Velocities (/Thread-KUKA-Joint-Velocities)



KUKA Joint Velocities-Marwin-07-11-2022

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


RE: KUKA Joint Velocities-Albert-07-12-2022

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)

你的孩子们l find more information and useful examples here:
//m.sinclairbody.com/doc/en/Post-Processors.html#PostSampleSpeed


RE: KUKA Joint Velocities-Marwin-07-12-2022

Great, thank you! :)