I keep having to suggest adding a string field in ROS Service definition
.srv so that Service server can communicate with the Service client about any undefined condition on Server side. I’ve come up with situations where developers noticed later that there’s no way to send error state to the client with the custom .srv.
I haven’t found discussion/sources about such a practice online yet.
- Is it a good idea?
- Is there any downside in doing so?
(Thought there’s a tag for best practice but I can’t find it.)