Custom servo control app does not work upon restart

Hi all,

I’m trying to set up a custom servo control app that moves the servos in a certain pattern in the background. I’m doing so by spawning a task which publishes to topic actuator_controls_0.

While the app works fine on the first time, if I stop it and run it again, it stops to work. Any leads as to why this would be?

Moreover, I found that the default app listener does not recognize the topic actuator_controls_0. Is this some sort of a safety feature?

Regards,

Brian Lee