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

Revision history [back]

You cannot call a service using a publisher. This is simply the wrong way to do this.

You need to use a ServiceClient. Have a look at the python tutorial on creating a ServiceClient for how to do this. Then, use the respective service type in your script.

You cannot call a service using a publisher. This is simply the wrong way to do this.

You need to use a ServiceClient. Have a look at the python tutorial on creating a ServiceClientServiceClient (or ServiceProxy) for how to do this. Then, use the respective service type in your script.