How to set kinematics actions to finish within a specified time

How to set kinematics actions to finish within a specified time

pretty0329
Participant Participant
91 Views
1 Reply
Message 1 of 2

How to set kinematics actions to finish within a specified time

pretty0329
Participant
Participant

I am currently using kinematics to create robot arm animations.
Right now, I have the arm’s target positions and the desired completion time for each movement.

pretty0329_0-1754449967737.png

 

However, I noticed that the kinematics functions ( addkinematic() ) use speed as a parameter.
How can I achieve my goal of making the motion finish within a specified time, similar to the default robot behavior where we can set “Move Time”?

pretty0329_1-1754450005878.png

If possible, could you help me modify the attached file to implement this?

Thank you.

0 Likes
Accepted solutions (1)
92 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

You'd need to calculate what speed the joint needs to move at to finish the travel in the planned time. If acceleration is infinite (which I believe is the case for motion paths) this is a simple division. If not, the calculation gets more complex, but is still just using the equations available to you and transforming them into a single one that has the maximum speed as the only unknown quantity.

If my back-of-the-napkin math is right that should be s = v*t - v²/a (s = total distance/rotation, v = max speed, t = total time, a = acceleration), then solve for v.

0 Likes