Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm not sure if you mean for these two service callbacks to be in the same node or not...

If they are, the service callback is still a function, right? So you should be able to call my_service_1(srv1.request, srv1,response); like you would any other function.

If they're not in the same node, there's no rule that says you can't call one service from another service. Just know that services are blocking. So the caller of my_service_2 would have to wait for my_service_2 to finish before continuing execution, and my_service_2 won't finish until my_service_1 finishes.