Running ALMotionProxy::angleInterpolationBezier as a subprocess

Gepostet etwa 1 Jahr her von Philipamadasun1

Ein Thema veröffentlichen
Nicht gelöst
P
Philipamadasun1

I am currently trying to run a script as a subprocess in my parent process.  This subprocess uses  ALMotionProxy::angleInterpolationBezier to exectute animations . The subprocess does not work as I expect at all. The animation does not run.

ALMotionProxy::angleInterpolationBezier is a blocking call (from what the documentation verbatum says). I think this is why subprocesses does not execute properly.  This subprocesses runs with another subprocesses in the main script. They need to both run concurrently. Is there some way I get the subprocess which uses ALMotionProxy::angleInterpolationBezier to do what I want? Or are there other options available to me? I just want the be able to run animations and resent the joints back to their normal position afterwards. I would also ideally want to be able to interrupt the animation subprocess using a keyboard interrupt. ANy help on this matter would be greatly appreciated. A simplified example of a type of animation subprocess I would like to run is attached.

0 Stimmen


1 Kommentare

A

Arthur Maixmilian Noller gepostet 7 Monate her

I would advise you to use the newer qi library. It includes some async functionality you could use to achieve your goal. Regarding cancelling the movements, as far as I am aware its not possible to cancel during the middle of executing a angleInterpolation call something you could try is either splitting your animation into multiple smaller calls and then you could cancel the animation in between these sub calls.

0 Stimmen

Anmelden oder Registrieren um einen Kommentar zu veröffentlichen