select one of three servo motor position when object is visible #1092
Replies: 2 comments 2 replies
-
Hey, The first error is due to the datatype you are trying to pass to the Regarding the permutation, check the attached workflow for two possible solutions. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi Bruno, Thanks for the answer! I tried to incorporate your script such that it permutates the platform when the mouse is visible in the camera. But when I try to use the zip node to put together the RandomTilt value and the condition that the mouse is in a certain position, the servo output node does not like it... |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I want to change the position of a servo motor (either turn it to the left 90 deg, leave it in the same position 100 deg, or turn it to right 110 deg) once the mouse is visible in the camera, this position will be maintained for 5 seconds and then put it back to 100 deg until the next time the mouse is visible again. I tried to use the permutation function, but I get some errors (below a screenshot of the bonsai script), and the motor never changes position. Would anyone have suggestions on this?
Best,
Salvo
Beta Was this translation helpful? Give feedback.
All reactions