Best choice for controlling GPIOs (published messages or service calls)
Hello,
Sorry if this is an already answered question, but despite a couple of hours spent googling the Web and searching in this forum, I couldn't find.
What is the rule of thumb for deciding if some control operation should be implemented using published messages or service calls ?
For controlling robot moves, I could see that the standard way is to use Twist
messages published on the /cmd_vel
topic. But what about controlling GPIOs for instance ? Should this be using published messages too or service calls ?
Since there is no feedback when using messages (you can't know if somebody heard them and process them), I would be tempted to use service calls instead.
Thanks in advance for any advice. Best regards. Eric