I know it is possible to do a action in java right before you shutdown polyscope/robot through the Activator Stop() method. (Im assuming emergency stop is the same)
However, is it possible to know when the user manual stops or pause a running program in the polyscope? Essentially what I have is a daemon controlling a motor via serial communication, and I’d like to stop the motor if the user ends up manually stopping or pausing.