ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Throw an exception inside your service callback function.
bool setCameraAttr(custom_msgs::CamSetAttrRequest &req, custom_msgs::CamSetAttrResponse &rsp) {
throw std::runtime_error("this will show up");
}
->
ERROR: service [/host/ir/set_camera_attr] responded with an error: this will show up