Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I overload the ServiceServer callback to have multiple types of responses for the same request?

I want to have a ServiceServer that given a request's value, can have multiple types of responses which are not necessarily the same types of data msgs.

Can I overload the advertiseService() specified callback to achieve this? Or is there some other way to do this?