I am rather new to python programming and I’m struggling with modelling this component:
I have modelled my own belt conveyor and now I want to connect different signals to it and each signal triggers a different movement eg., moving a belt to adjust to the size of the product.
I don’t know how to program the script so that it waits until a signal is triggered and then move the respective joint (with servo.moveJoint(0,…)). I’ve already tried using onSignal (signal) or conditiontrigger (in a while loop) and if…elif inside a while loop but with no success.
For what I’ve learned so far:
-onSignal doesn’t let me use commands for movement that need time like .movejoint.
-conditiontrigger looks like it needs to be executed in the order or if not it won’t enter on the next conditiontrigger
-the if… elif option gets the program hooked.
Does someone know how to program this?
Thanks in advance.