How do you continuously monitor a momentary input?
I have a UR10 and I am trying to use a Thread to monitor a momentary push button, which will then set certain variables when the push button it true/pressed. Nothing happens though when the button is pressed. I thought a thread could continuously monitor the input. But after some reading it appears this is not how it works. I think the input has to be true when the program sequence gets to the thread, not every scan like a PLC. Is there any way to continuously monitor a momentary input and have it set a variable as soon as it is true?
Asked by Tim G on 2017-11-20 22:06:57 UTC
Comments
Can you clarify how your question is related to ROS? This board is for ROS questions only, it is not a generic robotics forum.
Asked by gvdhoorn on 2017-11-21 03:37:35 UTC