Embed request fields from another .srv files into my .srv
Service_Description_Specification says:
You cannot embed another .srv inside of a .srv.
The syntax of .srv
files aligns with that of msg
so there should be nothing specific to srv (it's just the format where request and response fields need to be defined is different). Is there any reason why we can't embed another .srv files into my .srv?
UPDATE: Reponding to the comment from @NEngelhard. What I wanted to do is to import request fields from an existing .srv file into the request field of my .srv.
Then I've come to realize that importing an entire .srv file, which obviously includes both request and response fields, into the request
field of my .srv would result in undesirable situation.
So I changed my title to ask if there's a way to import req fields only from existing .srv.
How would you like to embed the inner service? If you integrate it into the request, then your new request would also include the result-definition of the inner service. What do you want to do?