ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
If you have compile errors, you should always post them along with your question.
It appears you are not using the correct signature for the callback function, as described in Writing a Simple Service and Client (C++), it should have two arguments (one for the request, one for the response).