Best approach for continuous blinking task
Hello!
I'm developping a small node that interfaces with nao_driver which is supposed to offer the user to start a blinking behaviour. The user is supposed to be able to turn on the behaviour and the stop it as needed.
I see two options:
- Option 1) Create two services (eg. start_blinking and stop_blinking), and put the blinking code in a different thread.
- Option 2) Use actionlib and then let the user preempt the task to stop it.
Which one is the recommended approach?
I guess it's irrelevant, but I'm coding this with rospy.
Thanks!
Miguel S.