Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 84

Embed request fields from another .srv files into my .srv

$
0
0
[Service_Description_Specification](http://wiki.ros.org/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.

Viewing all articles
Browse latest Browse all 84

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>