petercorke/robotics-toolbox-python

Controlling animation time with the P560.plot() command

Bokovan opened this issue · 0 comments

Hello,

I am currently using Peter Corke's Robotics Toolbox Python, and I have a question regarding controlling the animation time when using the P560.plot() command.

I am currently using the following code snippet to generate a joint trajectory and display it using the P560.plot() command:

import roboticstoolbox as rtb

p560 = rtb.models.DH.Puma560()
qt = rtb.tools.trajectory.jtraj(p560.qz, p560.qr, 50)
p560.plot(qt.q)

It is working well, but I would like to know if there is a way to control the animation speed or the animation time of the generated trajectory. I would like to slow down or speed up the animation by adjusting the total animation time.

I have gone through the official documentation of the toolbox, but I couldn't find any specific information regarding this. I would like to know if such a feature already exists in the toolbox or if there is any alternative approach I could use to achieve this goal.

Thank you in advance for your assistance and guidance.

Best regards,
Evan