You can't if you intend to use a ROS service. This is how services are designed.
You can create your own service type, if you want, only containing booleans.
my_pkg/MyBoolSrv
:
bool input
---
bool output
But you'll still have the respective function signature as
bool Command::arming_service(my_pkg::MyBoolSrv::Request request, my_pkg::MyBoolSrv::Response response) {
// whatever with request.input and response.output
return false;
}
If this doesn't answer your question, please provide more details on your use case and what you actually want to do.
Originally posted by mgruhler with karma: 12390 on 2020-07-06
This answer was ACCEPTED on the original site
Post score: 1
Original comments
Comment by maxime on 2020-07-06:
It does perfectly answer it, thank you :)
Comment by mgruhler on 2020-07-07:
Happy to help!