Wait for trajectory completion in tview

As of pypi 0.3.68, tview has gained the ability to delay execution of a compound command until the currently executing trajectory is complete. This can be useful for developing more complex motions that consist of multiple steps.

To use it, just issue a '?[optional_id]' in your command sequence. For instance, to move to position 1 and come to a stop, then move to position 0 when that has completed, you could do:

d pos 1 0 nan a2 && ? && d pos 0 0 nan a2

That’s all there is to it, the official documentation can be found in the reference manual!

Leave a comment