0
$\begingroup$

Is it possible to get service type from name of the service or from a service type string? I would want something like this:

string srv_name = "foo";
string srv_type = "std_srvs/SetBool";
auto request = getSrvType(srv_type)::Request;
// or
auto request = getSrvType(srv_name)::Request;
$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.