ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Your multiply callback is not compatible with what ServiceServer can use. That is why you get the error.

i'm a total ROS newbie and am not sure if this is true, or how to write it otherwise.

We are more than willing to help you here on ROS Answers, but just to make sure (and to get some very basic stuff out of the way): have you done the Writing a Simple Service and Client (C++) tutorial?

That should show you how to write a proper service server callback.

See also wiki/roscpp/Overview/Services, specifically: wiki/roscpp/Overview/Services - Providing Services - Callback Signature.