I am trying to create a URCaps that can toggle I/O states depending on the robot status while a program is not running.
For example, if the robot E-Stop is triggered, toggle an output to True, even if the robot is idle.
Does anyone know the easiest way to get this done? I tried using URscript through the ScriptWriter, however this script is only generated when the program runs.
Thank you for your help so far. I’m sure I understand how to run a thread inside the constructor? Could you provide a short snippet of code to help me understand?
Awesome! Thanks, was able to get the thread running in the constructor of contribution.
I am having trouble using the writer.println(command); to toggle multiple outputs one after another. Is there a specific sequence that I should be using to accomplish this?