-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtt_roscomm/rtt_std_srvs: add wrappers for common operation signature…
…s to rtt_std_srvs (fix #101) With this patch it is possible to create ROS service servers for some common operation signatures out of the box, without the need to write custom wrappers or to add extra operations with the ROS specific callback signature. Supported service types and associated signatures: std_srvs/Empty: - bool empty() // The service call fails if empty() returns false! // Use std_srvs/Trigger if the result should be returned as the response. - void empty() std_srvs/SetBool: - bool setBool(bool, std::string &message_out) - bool setBool(bool) // response.message will be empty - std::string setBool(bool) // response.success = true - void setBool(bool) // response.success = true and response.message will be empty std_srvs/Trigger: - bool trigger(std::string &message_out) - bool trigger() // response.message will be empty - std::string trigger() // response.success = true The approach can be easily extended to other ROS service types.
- Loading branch information
Showing
9 changed files
with
310 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.