Python trajectory waiting
In simple motion control applications with moteus, a common request for the python library is “run a position command until it is complete”. moteus does track when the target position reaches the desired one and reports it in the “trajectory complete flag” (register 0x00b), however until now the application needed to poll that flag on a regular basis to see when the motion is done.
As of pypi moteus 0.3.59, there is now a new method on Controller
which can be used to accomplish this, along with an example script. Basic usage is about as simple as one would expect: